ueberdosis / hocuspocus

The CRDT Yjs WebSocket backend for conflict-free real-time collaboration in your app.
https://tiptap.dev/docs/hocuspocus/introduction
MIT License
1.31k stars 126 forks source link

Error playground in gh codespaces #717

Closed drunkod closed 1 year ago

drunkod commented 1 year ago

Description [plugin:vite:import-analysis] Failed to resolve entry for package "@hocuspocus/provider". The package may have incorrect main/module/exports specified in its package.json.

/workspaces/hocuspocus/playground/frontend/src/pages/Index.vue at packageEntryFailure (file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:23382:11) at resolvePackageEntry (file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:23379:5) at tryNodeResolve (file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:23113:20) at Context.resolveId (file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:22874:28) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.resolveId (file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:42847:32) at async TransformContext.resolve (file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:42575:23) at async normalizeUrl (file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:40500:34) at async file:///workspaces/hocuspocus/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:40651:47 Click outside or fix the code to dismiss. You can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.

Steps to reproduce the bug Steps to reproduce the behavior:

  1. Go to …gh codespaces
  2. Type in …npm run playground
  3. See error message

console:

generated-pages?id=~pages:4 GET https://super-funicular-pvv7xg7p4gfrxwv-5173.app.github.dev/src/pages/Index.vue net::ERR_ABORTED 500 pages_import_3 @ generated-pages?id=~pages:4 extractComponentsGuards @ vue-router.mjs:2087 (anonymous) @ vue-router.mjs:3283 Promise.then (async) navigate @ vue-router.mjs:3278 pushWithRedirect @ vue-router.mjs:3166 push @ vue-router.mjs:3099 install @ vue-router.mjs:3530 use @ runtime-core.esm-bundler.js:4399 (anonymous) @ main.ts:13 Show 1 more frame Show less main.ts:13 [Vue Router warn]: uncaught error during route navigation: warn @ vue-router.mjs:35 triggerError @ vue-router.mjs:3449 (anonymous) @ vue-router.mjs:3173 Promise.catch (async) pushWithRedirect @ vue-router.mjs:3167 push @ vue-router.mjs:3099 install @ vue-router.mjs:3530 use @ runtime-core.esm-bundler.js:4399 (anonymous) @ main.ts:13 Show 1 more frame Show less main.ts:13 TypeError: Failed to fetch dynamically imported module: https://super-funicular-pvv7xg7p4gfrxwv-5173.app.github.dev/src/pages/Index.vue triggerError @ vue-router.mjs:3451 (anonymous) @ vue-router.mjs:3173 Promise.catch (async) pushWithRedirect @ vue-router.mjs:3167 push @ vue-router.mjs:3099 install @ vue-router.mjs:3530 use @ runtime-core.esm-bundler.js:4399 (anonymous) @ main.ts:13 Show 1 more frame Show less main.ts:13 [Vue Router warn]: Unexpected error when starting the router: TypeError: Failed to fetch dynamically imported module: https://super-funicular-pvv7xg7p4gfrxwv-5173.app.github.dev/src/pages/Index.vue warn @ vue-router.mjs:35 (anonymous) @ vue-router.mjs:3532 Promise.catch (async) install @ vue-router.mjs:3530 use @ runtime-core.esm-bundler.js:4399 (anonymous) @ main.ts:13 Show 1 more frame Show less vue-router.mjs:35 [Vue Router warn]: uncaught error during route navigation: warn @ vue-router.mjs:35 triggerError @ vue-router.mjs:3449 (anonymous) @ vue-router.mjs:3173 Promise.catch (async) pushWithRedirect @ vue-router.mjs:3167 push @ vue-router.mjs:3099 navigate @ vue-router.mjs:2189 callWithErrorHandling @ runtime-core.esm-bundler.js:173 callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:182 invoker @ runtime-dom.esm-bundler.js:345 Show 3 more frames Show less vue-router.mjs:3451 TypeError: Failed to fetch dynamically imported module: https://super-funicular-pvv7xg7p4gfrxwv-5173.app.github.dev/src/pages/Index.vue triggerError @ vue-router.mjs:3451 (anonymous) @ vue-router.mjs:3173 Promise.catch (async) pushWithRedirect @ vue-router.mjs:3167 push @ vue-router.mjs:3099 navigate @ vue-router.mjs:2189 callWithErrorHandling @ runtime-core.esm-bundler.js:173 callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:182 invoker @ runtime-dom.esm-bundler.js:345 Show 8 more frames Show less generated-pages?id=~pages:5 GET https://super-funicular-pvv7xg7p4gfrxwv-5173.app.github.dev/src/pages/Collab.vue