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

web-client: Not working for [email protected], [email protected] #3214

Open
Albermonte opened this issue Dec 28, 2024 · 2 comments
Open

web-client: Not working for [email protected], [email protected] #3214

Albermonte opened this issue Dec 28, 2024 · 2 comments
Assignees

Comments

@Albermonte
Copy link
Member

MRE: https://github.com/Albermonte/nimiq-svelte-demo

Following the setup instructions in either @nimiq/core or dev center for Vite results in the same error.

Internal server error: No known conditions for "./web" specifier in "@nimiq/core" package
  Plugin: vite:import-analysis
  File: /Users/albermonte/nimiq/nimiq-svelte-demo/src/routes/+page.svelte
      at e (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46041:25)
      at n (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46041:646)
      at o (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46041:1297)
      at resolveExportsOrImports (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46662:18)
      at resolveDeepImport (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46685:25)
      at tryNodeResolve (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46450:16)
      at ResolveIdContext.resolveId (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:46200:19)
      at PluginContainer.resolveId (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49015:17)
      at async TransformPluginContext.resolve (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49175:15)
      at async normalizeUrl (file:///Users/albermonte/nimiq/nimiq-svelte-demo/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:64034:26)
@sisou
Copy link
Member

sisou commented Dec 29, 2024

@Albermonte Please verify that Albermonte/nimiq-svelte-demo#1 works for you. pnpm build runs successfully, but please check that the app actually does what you want from it. If it does, we can update the documentation accordingly.

@Albermonte
Copy link
Member Author

Checked and it does work, just a small comment. The worker.plugins type is a function

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