WARN "css.modules" option in vue.config.js is deprecated now, please use "css.requireModuleExtension" instead. INFO Starting development server... 98% after emitting CopyPlugin WARNING Compiled with 17 warnings 09:43:57 warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'computed' was not found in 'vue' warning in ./src/router/index.js "export 'default' (imported as 'VueRouter') was not found in 'vue-router' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'defineComponent' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'getCurrentInstance' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'h' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'inject' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'nextTick' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'onActivated' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'onDeactivated' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'onUnmounted' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'provide' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'reactive' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'ref' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'shallowRef' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'unref' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'watch' was not found in 'vue' warning in ./node_modules/vue-router/dist/vue-router.mjs "export 'watchEffect' was not found in 'vue'这个报错因为什么
时间: 2024-04-21 18:26:37 浏览: 296
这个报错是因为在使用Vue Router时,导入的Vue Router版本与当前项目中的Vue版本不匹配导致的。具体来说,Vue Router中使用了Vue 3的语法而当前项目中使用的是Vue 2,所以会出现一些语法上的错误。解决方法是将Vue Router更新到与当前项目中使用的Vue版本相匹配的版本。
相关问题
cross-env NODE_ENV=production nuxt build [warn] `mode` option is deprecated. You can safely remove it from `nuxt.config` [warn] vendor has been deprecated due to webpack4 optimization [warn] build.extractCSS.allChunks has no effect from v2.0.0. Please use build.optimization.splitChunks settings instead.
这是一个 Nuxt.js 的警告信息,提示你一些配置已经被废弃或者修改了。具体来说:
- `mode` 选项已经被废弃了,你可以直接移除它。
- `vendor` 配置也被废弃了,因为 Webpack4 已经做了优化,你可以考虑移除它并使用默认的配置。
- `build.extractCSS.allChunks` 配置从 v2.0.0 开始不再生效,你可以使用 `build.optimization.splitChunks` 代替。
如果你想消除这些警告,可以按照提示修改你的 Nuxt.js 配置文件。
在执行hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-*.jar \ > -file mapper.py \ > -mapper mapper.py \ > -file reducer.py \ > -reducer reducer.py \ > -input input.txt \ > -output output时报错WARN streaming.StreamJob: -file option is deprecated, please use generic option -files instead.怎么解决
这个警告提示说 `-file` 选项已经被弃用了,应该使用通用选项 `-files`。所以你可以将命令中的 `-file` 替换为 `-files`,例如:
```
hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-*.jar \
-files mapper.py \
-mapper mapper.py \
-files reducer.py \
-reducer reducer.py \
-input input.txt \
-output output
```
这样就可以避免这个警告了。
阅读全文