找不到模块:安装 React-boilerplate 蒲公英入门项目后无法解析“./.htaccss”
Module not found: Can't resolve './.htaccss' after installing React-boilerplate Dandelion starter project
我已经下载了 Dandelion starter-project 并将其解压到本地文件夹中。我运行:
npm i
npm run build:dll
然后
npm start
然后它抱怨:
> dandelion_pro@1.6.1 start /home/......./dandelion/starter-project
> cross-env NODE_ENV=development node server
Happy[js]: Version: 5.0.1. Threads: 5 (shared pool)
Server started ! ✓
Access URLs:
-----------------------------------
Localhost: http://localhost:3001
LAN: http://xxx.xxx.xxx.xxx:3001
-----------------------------------
Press CTRL-C to stop
Webpack is building script...
Happy[js]: All set; signaling webpack to proceed.
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
webpack built 920e70412c607c0d50a6 in 3600ms
✖ 「wdm」:
ERROR in ./app/app.js
Module not found: Error: Can't resolve './.htaccess' in '/home/......./dandelion/starter-project/app'
@ ./app/app.js 27:0-48
@ multi ./node_modules/react-app-polyfill/ie11.js webpack-hot-middleware/client?reload=true ./app/app.js
我在网上搜索了解决方案,但找不到。我的系统是基于 Ubuntu 18.04.3 的机器 运行 Linux Mint 19.3、nodejs 12.15.0 和 npm 6.13.4。我该如何解决?
好吧,在网络上无休止的搜索失败后,我创建了一个空的“.htaccess”文件并将其放入“app”文件夹中。也许这不是最好或最优雅的方法,但它对我有用。
我发布这个希望它可能有所帮助。
我已经下载了 Dandelion starter-project 并将其解压到本地文件夹中。我运行:
npm i
npm run build:dll
然后
npm start
然后它抱怨:
> dandelion_pro@1.6.1 start /home/......./dandelion/starter-project
> cross-env NODE_ENV=development node server
Happy[js]: Version: 5.0.1. Threads: 5 (shared pool)
Server started ! ✓
Access URLs:
-----------------------------------
Localhost: http://localhost:3001
LAN: http://xxx.xxx.xxx.xxx:3001
-----------------------------------
Press CTRL-C to stop
Webpack is building script...
Happy[js]: All set; signaling webpack to proceed.
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
webpack built 920e70412c607c0d50a6 in 3600ms
✖ 「wdm」:
ERROR in ./app/app.js
Module not found: Error: Can't resolve './.htaccess' in '/home/......./dandelion/starter-project/app'
@ ./app/app.js 27:0-48
@ multi ./node_modules/react-app-polyfill/ie11.js webpack-hot-middleware/client?reload=true ./app/app.js
我在网上搜索了解决方案,但找不到。我的系统是基于 Ubuntu 18.04.3 的机器 运行 Linux Mint 19.3、nodejs 12.15.0 和 npm 6.13.4。我该如何解决?
好吧,在网络上无休止的搜索失败后,我创建了一个空的“.htaccess”文件并将其放入“app”文件夹中。也许这不是最好或最优雅的方法,但它对我有用。
我发布这个希望它可能有所帮助。