Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build or run the app #16

Open
sliontc opened this issue Apr 2, 2021 · 1 comment
Open

Failed to build or run the app #16

sliontc opened this issue Apr 2, 2021 · 1 comment

Comments

@sliontc
Copy link

sliontc commented Apr 2, 2021

Failed to compile.

./src/core/async-loader.js
Module build failed (from ./node_modules/eslint-loader/index.js):
TypeError: Cannot read property 'range' of null
at OffsetStorage.setDesiredOffset (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\rules\indent.js:335:45)
at C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\rules\indent.js:1310:29
at Array.forEach ()
at Object.TemplateLiteral [as listener] (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\rules\indent.js:1304:34)
at C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\rules\indent.js:1496:55
at Array.forEach ()
at Program:exit (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\rules\indent.js:1496:26)
at C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\util\safe-emitter.js:47:58
at Array.forEach ()
at Object.emit (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\util\safe-emitter.js:47:38)
at NodeEventGenerator.applySelector (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\util\node-event-generator.js:251:26)
at NodeEventGenerator.applySelectors (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\util\node-event-generator.js:280:22)
at NodeEventGenerator.leaveNode (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\util\node-event-generator.js:303:14)
at CodePathAnalyzer.leaveNode (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:630:23)
at Traverser.leave [as _leave] (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\linter.js:868:28)
at Traverser._traverse (C:\Users\Administrator\Downloads\vant--mobile-mall-dev\node_modules\eslint\lib\util\traverser.js:155:18)

@chana1024
Copy link

change 'import(@/views/${chunkPath})' to 'require(@/views/${chunkPath})' in async-loader.js
https://blog.csdn.net/weixin_42406046/article/details/103718293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants