Webpack将 react项目打包成APP时 react-router失效

#1

在webpack的服务器8080端口开发调试好好的,本地80端口只能打开主页,其他路径都是报错的

[an error occurred while processing this directive] The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. [an error occurred while processing this directive]

这是页面报错信息
下面是控制台报错信息

Error in event handler for (unknown): TypeError: Cannot read property 'textContent' of null
at displayError (chrome-extension://chklaanhfefbnpoihckbnefhakgolnmc/content.js:4:99)
at chrome-extension://chklaanhfefbnpoihckbnefhakgolnmc/content.js:282:4
#2

换个浏览器试试,看报错信息好像和chrome扩展插件有关。