错误提醒 * vue- in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/page/Markdown.vue
时间: 2023-06-30 19:23:27 浏览: 96
这个错误通常表示在使用 Vue.js 编写组件时,出现了一些问题。具体来说,这似乎是一个 webpack 编译错误,它指出在加载 Markdown.vue 组件时,出现了一个问题。
你可以尝试一些解决方法,比如:
1. 检查 Markdown.vue 组件文件的路径是否正确。
2. 确保你的 webpack 配置文件正确配置了 vue-loader。
3. 确保你的项目中安装了正确的依赖,比如 vue 和 vue-loader。
希望这些提示能够帮助你解决问题。
相关问题
This dependency was not found: * vue- in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!
这个错误提示通常是因为你的项目中缺少了vue.js依赖。你需要通过npm或者yarn等包管理工具安装vue.js依赖,然后在你的项目中引入vue.js。如果你已经安装了vue.js依赖,那么可能是你的webpack配置文件没有正确配置,需要检查一下。另外,如果你使用的是vue-cli创建的项目,可以尝试使用vue-cli提供的webpack配置来解决这个问题。
/common/category-cascader in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?
As an AI language model, I cannot provide a specific answer to this question as it requires more context and information about the project and codebase. However, I can give a general explanation.
The file path "/common/category-cascader" refers to a module or component in the project that is related to a category cascader, which is a type of user interface element that allows users to select a category from a hierarchical list.
The "./node_modules/babel-loader/lib!" and "./node_modules/vue-loader/lib/selector.js?" prefixes indicate that the file is being loaded and processed by two different loaders: babel-loader and vue-loader.
Babel-loader is a module loader for Webpack that transpiles modern JavaScript code into a format that is compatible with older browsers. Vue-loader is a loader for Webpack that allows developers to write Vue.js components in a single file format, which is then compiled into JavaScript code that can be executed in the browser.
The "selector.js?" suffix in the Vue-loader path indicates that the module is being loaded with a specific selector, which is used to identify the Vue.js components in the file.