bash npm cache clean --force rm -rf node_modules rm package-lock.json npm install 通过这些步骤,你应该能够定位并解决 node_modules\vue-tsc\index.js:34 throw err; 引发的异常。如果问题依旧存在,可能需要更详细的错误信息来进一步分析。
5 ~~~ node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts:616:3 616 src?: string ~~~ The expected type comes from property 'src' which is declared here on type 'ElementAttrs<ImgHTMLAttributes>' src/view/webRTC/index.vue:13:55 - error TS2322: Type '(deviceId: string) => Pro...
PropFinalized<...>; ... 8 more ...; readonly collapseOpenIcon: { ...; }; }>> & VNodeProps & AllowedCo...'.14<el-sub-menu>~~~node_modules/element-plus/es/components/menu/index.d.ts:363:14363readonly index:{~~~'index'is declared here.src/view/testDemo/index.vue:27:32-error...
at Function.resolve (node:internal/modules/cjs/helpers:108:19) at getDefaultVueLanguagePlugins (C:\[PROJECT PATH]\node_modules\@volar\vue-language-core\out\plugins.js:30:44) at Object.createLanguageModules (C:\[PROJECT PATH]\node_modules\@volar\vue-language-core\out\languageModule.js:9:74)...
"sourceMap": true, "baseUrl": ".", "typeRoots": [ "./node_modules/@types", "./node_modules/unplugin-icons/types" ], "paths": { "@/*": ["src/*"] }, "lib": [ "esnext", "dom", "dom.iterable", "scripthost" ]
node_modules/@vue/test-utils/dist/interfaces/wrapperLike.d.ts:1:10 - error TS2305:Module '"src/types"' has no exported member 'DefinedComponent'. 1 import { DefinedComponent, FindAllComponentsSelector, FindComponentSelector, NameSelector, RefSelector } from 'src/types'; ~~~ node_modules/...
node-versions/v16.14.0/installation/bin/node] 13: 0x10b169ab7 14: 0x10b1fa2e4 15: 0x10b0f8099 16: 0x10ac789e8 17: 0x10b16ea97 18: 0x10ad30528 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command was killed with SIGABRT (Aborted): /Users/fi3ework/Downloads/test1/node_modules/.bin...
"build": "cross-env NODE_ENV=production webpack --config config/webpack.config.build.js" }, 现在执行下npm run build,已经可以正常打包了,我们把node_modules单独打包。build的简单配置如下: const base=require('./webpack.config.base') const merge=require('webpack-merge') ...
Describe the bug node:internal/event_target:916 process.nextTick(() => { throw err; }); ^ Error: Cannot find module '/.../node_modules/vite-plugin-checker/lib/checkers/vueTsc/typescript-vue-tsc/package.json' Require stack: - /.../node_mo...
rm -rf node_modules npm cache clean --force If problem saved, please report back, I will look for another solution I did the same thing as you mentioned and it works. Detail:fi3ework/vite-plugin-checker#306 (comment) It's really good! By the way I understand you used vue-tsc 1.0 ...