小编use*_*859的帖子

使用 vue/cli create 创建了一个新的 vue 项目但无法服务

上周我在创建一个新项目并为其提供服务时没有任何问题,但是今天当我使用 vue/cli 创建一个新的默认项目时,我在服务时出现编译错误。

PS E:\Projects\testing> yarn serve
yarn run v1.22.5
$ vue-cli-service serve
 INFO  Starting development server...
98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 error                                                                                                                                                                        ??12:22:33
 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 …
Run Code Online (Sandbox Code Playgroud)

node.js vue.js vue-cli vuejs3 vue-cli-4

0
推荐指数
1
解决办法
904
查看次数

标签 统计

node.js ×1

vue-cli ×1

vue-cli-4 ×1

vue.js ×1

vuejs3 ×1