You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错信息:
ERROR Failed to resolve import "./PipelineNode" from "node_modules.pnpm\[email protected]\node_modules\vue-pipeline\src\components\Pipeline.vue". Does the file exist?
ERROR 11:12:36 [vite] Internal server error: Failed to resolve import "./PipelineNode" from "node_modules.pnpm\[email protected]\node_modules\vue-pipeline\src\components\Pipeline.vue". Does the file exist?
Plugin: vite:import-analysis
File: C:/GitProject/moray-web/node_modules/.pnpm/[email protected]/node_modules/vue-pipeline/src/components/Pipeline.vue
1 |
2 | import PipelineNode from "./PipelineNode";
| ^
3 | import PipelineLine from "./PipelineLine";
4 | import { Pipeline } from "./service";
at formatError (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:39080:46)
at TransformContext.error (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:39076:19)
at normalizeUrl (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:58360:26)
at async TransformContext.transform (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:58509:57)
at async Object.transform (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:39317:30)
at async doTransform (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:50043:29)
The text was updated successfully, but these errors were encountered:
Erica666
changed the title
请问下在Vue3里面怎么使用这个组件呢?我引入组件报错,不清楚哪步写错了,可指导下吗?谢谢!
请问下在Vue3里面怎么使用这个组件呢?先pnpm安装、后import使用,然后启动会报错找不到文件,方便指导下吗?谢谢!
Nov 29, 2022
在main.ts 中import
import VuePipeline from 'vue-pipeline';
async function bootstrap() {
const app = createApp(App);
app.use(VuePipeline);
app.mount('#app');
}
报错信息:
ERROR Failed to resolve import "./PipelineNode" from "node_modules.pnpm\[email protected]\node_modules\vue-pipeline\src\components\Pipeline.vue". Does the file exist?
ERROR 11:12:36 [vite] Internal server error: Failed to resolve import "./PipelineNode" from "node_modules.pnpm\[email protected]\node_modules\vue-pipeline\src\components\Pipeline.vue". Does the file exist?
Plugin: vite:import-analysis
File: C:/GitProject/moray-web/node_modules/.pnpm/[email protected]/node_modules/vue-pipeline/src/components/Pipeline.vue
1 |
2 | import PipelineNode from "./PipelineNode";
| ^
3 | import PipelineLine from "./PipelineLine";
4 | import { Pipeline } from "./service";
at formatError (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:39080:46)
at TransformContext.error (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:39076:19)
at normalizeUrl (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:58360:26)
at async TransformContext.transform (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:58509:57)
at async Object.transform (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:39317:30)
at async doTransform (C:\GitProject\moray-web\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:50043:29)
The text was updated successfully, but these errors were encountered: