报错信息如下:Cannot find module 'vue'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
解决方案:
将根目录下的tsconfig.json文件中的compilerOptions->moduleResolution的值从bundler修改成node即可。
文章讲述了在使用Vue时遇到Cannotfindmodule错误,解决方法是将tsconfig.json文件中compilerOptions->moduleResolution的值从bundler改为node,确保Node.js模块查找路径设置正确。
报错信息如下:Cannot find module 'vue'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
解决方案:
将根目录下的tsconfig.json文件中的compilerOptions->moduleResolution的值从bundler修改成node即可。
9708