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

Missing "./CodeMirror.svelte" specifier in "svelte-codemirror-editor" package error on npm run build #28

Open
Zedespook opened this issue Jan 9, 2024 · 2 comments

Comments

@Zedespook
Copy link

Zedespook commented Jan 9, 2024

Hi there,

I've run into an error with this Svelte library. When I try to build my project, I get an error saying that ./CodeMirror.svelte is missing.

Here's the entire error log:

[commonjs--resolver] Missing "./CodeMirror.svelte" specifier in "svelte-codemirror-editor" package
error during build:
Error: Missing "./CodeMirror.svelte" specifier in "svelte-codemirror-editor" package
    at e (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:21914:25)
    at n (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:21914:627)
    at o (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:21914:1297)
    at resolveExportsOrImports (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:29466:20)
    at resolveDeepImport (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:29485:31)
    at tryNodeResolve (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:29210:20)
    at Object.resolveId (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/dist/node/chunks/dep-V3BH7oO1.js:28978:28)
    at file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:18670:40
    at async PluginDriver.hookFirstAndGetPlugin (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:18570:28)
    at async resolveId (file:///home/ben/Documents/svelte-report-creator-v1/client/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:17239:26)

Let me know if I didn't give enough information for this issue, and what I could do to help solve this issue.

Development setup

Steps to duplicate

  1. Run npm install svelte-codemirror-editor
  2. Run npm run build
@KoljaL
Copy link

KoljaL commented Feb 28, 2024

Same issue in my case :-(

@SomaticIT
Copy link
Contributor

I can't replicate your issue.
Can you create a replication project on Github?

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

3 participants