0

我已经下载了 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。我该如何解决这个问题?

4

1 回答 1

0

好吧,伙计们,在网上无休止地搜索后,我创建了一个空的“.htaccess”文件并将其放入“app”文件夹中。也许这不是更好或最优雅的方式,但它对我有用。

我发布这个希望它可能会有所帮助。

于 2020-02-12T18:55:13.410 回答