Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm dev error #3

Open
bearea opened this issue Jan 13, 2025 · 1 comment
Open

pnpm dev error #3

bearea opened this issue Jan 13, 2025 · 1 comment

Comments

@bearea
Copy link

bearea commented Jan 13, 2025

The plugin "vite:dep-scan" was triggered by this import
@open-web-container/playground:dev:
@open-web-container/playground:dev: src/hooks/useShell.ts:1:61:
@open-web-container/playground:dev: 1 │ ...ess,ContainerManager, ProcessEvent} from '@open-web-container/api';
@open-web-container/playground:dev: ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~
@open-web-container/playground:dev:
@open-web-container/playground:dev:
@open-web-container/playground:dev: X [ERROR] Failed to resolve entry for package "@open-web-container/api". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]
@open-web-container/playground:dev:
@open-web-container/playground:dev: ../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1225:21:
@open-web-container/playground:dev: 1225 │ let result = await callback({
@open-web-container/playground:dev: ╵ ^
@open-web-container/playground:dev:
@open-web-container/playground:dev: at packageEntryFailure (file:///D:/soft/idea/workspace/OpenSource/OpenWebContainer/node_modules/.pnpm/vite@5.4.11_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46637:15)
@open-web-container/playground:dev: at resolvePackageEntry (file:///D:/soft/idea/workspace/OpenSource/OpenWebContainer/node_modules/.pnpm/vite@5.4.11_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46634:3)
@open-web-container/playground:dev: at tryNodeResolve (file:///D:/soft/idea/workspace/OpenSource/OpenWebContainer/node_modules/.pnpm/vite@5.4.11_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46450:16)
@open-web-container/playground:dev: at ResolveIdContext.resolveId (file:///D:/soft/idea/workspace/OpenSource/OpenWebContainer/node_modules/.pnpm/vite@5.4.11_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46200:19)
@open-web-container/playground:dev: at PluginContainer.resolveId (file:///D:/soft/idea/workspace/OpenSource/OpenWebContainer/node_modules/.pnpm/vite@5.4.11_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49015:17)
@open-web-container/playground:dev: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@open-web-container/playground:dev: at async resolve (file:///D:/soft/idea/workspace/OpenSource/OpenWebContainer/node_modules/.pnpm/vite@5.4.11_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49627:22)
@open-web-container/playground:dev: at async file:///D:/soft/idea/workspace/OpenSource/OpenWebContainer/node_modules/.pnpm/vite@5.4.11_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49798:28
@open-web-container/playground:dev: at async requestCallbacks.on-resolve (D:\soft\idea\workspace\OpenSource\OpenWebContainer\node_modules.pnpm\[email protected]\node_modules\esbuild\lib\main.js:1225:22)
@open-web-container/playground:dev: at async handleRequest (D:\soft\idea\workspace\OpenSource\OpenWebContainer\node_modules.pnpm\[email protected]\node_modules\esbuild\lib\main.js:647:11)

@thecodacus
Copy link
Owner

do an pnpm run build on the root directory first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants