调试的时候,新建了一个vue页面,然后从别的页面直接把代码复制过来之后,
运行后报错 This relative module was not found

原因是复制的代码里import里有相对路径,复制过来后路径变了,导致引入的东西找不到,所以报错了
把相对路径改对后,可以正常运行了
- IDEA项目名称后面出现中括号,模块Modules的名子和文件夹名称不同,可以右键修改名称也可以在File->Project Structure 修改Modules的Name(快捷键ctrl+Shift+Alt+s)
- 《RAPL: A Relation-Aware Prototype Learning Approach for Few-Shot Document-Level Relation Extraction》阅读笔记
- 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
- Python中出现"No module named 'requests'"的图文解决办法
- ROS2 删除一个工作空间文件夹,source后终端出现not found ...... local_setup.bash解决
- cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
- [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
- vue报错:Module parse failed: Unexpected token (5:2) You may need an appropriate loader to handle this file type.
- About this page
- 多个子项目共用根级node_modules
本栏目推荐文章