首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >vue js服务问题-模块解析失败:意外令牌(763:13)

问vue js服务问题-模块解析失败:意外令牌(763:13)
EN

Stack Overflow用户
提问于 2021-07-02 19:23:32
回答 2查看 59关注 0票数 1

我正在创建一个新项目,如下所示:

​

​

创建一个项目有一个错误,但我不知道它是什么意思,不管怎么说,我打开了这个项目,当我写"npm run serve“时,出现了这样的问题:

​

​

​

代码语言:javascript
复制
PS C:\Users\Asus\Desktop\vueApps\aos\aos-ch> npm run serve

> aos-ch@0.1.0 serve C:\Users\Asus\Desktop\vueApps\aos\aos-ch
> vue-cli-service serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 error                                                              14:15:21
 error  in ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js

Module parse failed: Unexpected token (763:13)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process 
this file. See https://webpack.js.org/concepts#loaders
| }
| class RefImpl {
>     _rawValue;
|     _shallow;
|     _value;

 @ ./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js 1:0-233 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 2:0-216 16:4-17 40:4-17 107:13-18 108:32-37 115:16-21 1958:8-13 1962:13-23 1968:35-45 1970:16-21 1973:21-31 2071:19-25 2094:8-12 2135:8-13 2210:29-34 2557:27-30 2558:26-29 2559:28-31 2905:16-29 2912:16-29 3043:28-36 3362:41-56 3378:28-33 3463:8-15 3500:32-37 3647:27-32 3823:29-34 3951:12-25 3958:12-25 4568:17-22 4592:13-18 5173:26-32 5336:8-21 5340:8-21 5755:16-20 5761:12-16 6296:27-32 6328:12-19 6338:16-23 6356:93-100 6357:15-20 6767:60-75 6768:60-75 6769:60-75 6770:59-74 6847:16-21 6997:16-21 7150:21-28 7160:8-21 7161:134-149 7162:8-21 7210:30-39 7264:8-21 7266:8-21 7314:23-38 7334:46-55 7334:56-63 7389:14-24 7576:21-26 7586:21-31 7593:24-34 7596:21-31 7624:53-58 7630:52-57 7696:48-53
 @ ./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
 @ ./node_modules/vue/dist/vue.runtime.esm-bundler.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.1.2:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

​

如何解决这个问题,如果你能帮助我,我会很高兴。谢谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-07-02 20:07:09

只需更新您的vue-cli、node和npm即可。

票数 1
EN

Stack Overflow用户

发布于 2021-07-03 18:00:33

我也有同样的问题。“我照塞缪尔说的做了。”升级了npm,升级了纱线,运行了“纱线升级”,问题就解决了!升级将@vue/编译器-sfc从版本"^3.0.0“改为"^3.1.0",我怀疑这是真正的问题,因为它抱怨无法解析下划线。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68224347

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档