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

npm run build fails - Missing "./styles" specifier #384

Closed
DieselTech opened this issue Dec 20, 2023 · 3 comments
Closed

npm run build fails - Missing "./styles" specifier #384

DieselTech opened this issue Dec 20, 2023 · 3 comments

Comments

@DieselTech
Copy link

Trying to build the project fails with the error:

npm run build

> [email protected] build
> vite build

vite v4.5.1 building for production...
✓ 70 modules transformed.
✓ built in 7.00s
[commonjs--resolver] Missing "./styles" specifier in "svelte-highlight" package
error during build:
Error: Missing "./styles" specifier in "svelte-highlight" package
    at e (file:///Z:/Projects/chatgpt-web/node_modules/vite/dist/node/chunks/dep-68d1a114.js:21445:25)
    at n (file:///Z:/Projects/chatgpt-web/node_modules/vite/dist/node/chunks/dep-68d1a114.js:21445:627)
    at o (file:///Z:/Projects/chatgpt-web/node_modules/vite/dist/node/chunks/dep-68d1a114.js:21445:1297)
    at resolveExportsOrImports (file:///Z:/Projects/chatgpt-web/node_modules/vite/dist/node/chunks/dep-68d1a114.js:28746:20)
    at resolveDeepImport (file:///Z:/Projects/chatgpt-web/node_modules/vite/dist/node/chunks/dep-68d1a114.js:28765:31)
    at tryNodeResolve (file:///Z:/Projects/chatgpt-web/node_modules/vite/dist/node/chunks/dep-68d1a114.js:28453:20)
    at Object.resolveId (file:///Z:/Projects/chatgpt-web/node_modules/vite/dist/node/chunks/dep-68d1a114.js:28212:28)
    at file:///Z:/Projects/chatgpt-web/node_modules/rollup/dist/es/shared/node-entry.js:25544:40
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async PluginDriver.hookFirstAndGetPlugin (file:///Z:/Projects/chatgpt-web/node_modules/rollup/dist/es/shared/node-entry.js:25444:28)
@jaxtew
Copy link

jaxtew commented Dec 21, 2023

Looks like this commit broke it?

210a002

Workaround: Bumped my svelte-highlight version back to 7.4.2 and it seems to be working.

@Niek Niek closed this as completed in abf7137 Dec 22, 2023
@Niek
Copy link
Owner

Niek commented Dec 22, 2023

Hmm, svelte-highlight broke importing. I have committed a workaround in abf7137

@all-contributors please add @jaxtew and @DieselTech for bugs

Copy link
Contributor

@Niek

I've put up a pull request to add @jaxtew! 🎉

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