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

[Bug]: [vite:resolve] Missing "./dist-esm/lib/core/capture.mjs.js" export in "@tldraw/state" package #2933

Closed
sicoware opened this issue May 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sicoware
Copy link

What happened?

npm run build fails with vite

To reproduce:
npm init quasar
npm install @100mslive/roomkit-web

add sample code as from https://github.com/100mslive/web-sdks/tree/main/packages/roomkit-web in src/pages/IndexPage.vue

`

Quasar logo


<script> import { defineComponent } from 'vue' import '@100mslive/roomkit-web'; export default defineComponent({ name: 'IndexPage' }) </script>`

Running: npm run dev all works fine but using npm run build I get:

 Build mode............. spa
 Pkg quasar............. v2.16.4
 Pkg @quasar/app-vite... v1.9.3
 Pkg vite............... v2.9.18
 Debugging.............. no
 Publishing............. no

 App •  WAIT  • Compiling of SPA UI with Vite in progress...
Module level directives cause errors when bundled, 'use client' was ignored.
[vite:resolve] Missing "./dist-esm/lib/core/capture.mjs.js" export in "@tldraw/state" package
Error: Missing "./dist-esm/lib/core/capture.mjs.js" export in "@tldraw/state" package
    at bail (/Users/sico/Documents/test-100ms/quasar-project/node_modules/vite/dist/node/chunks/dep-0a035c79.js:38597:8)
    at resolve (/Users/sico/Documents/test-100ms/quasar-project/node_modules/vite/dist/node/chunks/dep-0a035c79.js:38674:10)
    at resolveExports (/Users/sico/Documents/test-100ms/quasar-project/node_modules/vite/dist/node/chunks/dep-0a035c79.js:40982:12)
    at resolveDeepImport (/Users/sico/Documents/test-100ms/quasar-project/node_modules/vite/dist/node/chunks/dep-0a035c79.js:41000:31)
    at tryNodeResolve (/Users/sico/Documents/test-100ms/quasar-project/node_modules/vite/dist/node/chunks/dep-0a035c79.js:40773:20)
    at Object.resolveId (/Users/sico/Documents/test-100ms/quasar-project/node_modules/vite/dist/node/chunks/dep-0a035c79.js:40528:32)
    at /Users/sico/Documents/test-100ms/quasar-project/node_modules/rollup/dist/shared/rollup.js:22826:37 {
  code: 'PLUGIN_ERROR',
  plugin: 'vite:resolve',
  hook: 'resolveId',

How can we reproduce the bug?

No response

What browsers are you seeing the problem on?

No response

@sicoware sicoware added the bug Something isn't working label May 23, 2024
@raviteja83
Copy link
Collaborator

@sicoware please upgrade to the latest version of the package and check. if the issue still exists, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants