question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vite build failing in github action

See original GitHub issue

https://github.com/audacioustux/audacioustux/runs/2335266424?check_suite_focus=true

[vite]: Rollup failed to resolve import "@audacioustux/gameoflife" from "src/App.vue?vue&type=script&lang.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
error during build:
Error: [vite]: Rollup failed to resolve import "@audacioustux/gameoflife" from "src/App.vue?vue&type=script&lang.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

as yarn dev or vite serve will never terminate in github action, is there any other way to make vite build succeed? manually running wasm-pack --dev doesn’t work

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

vite build failing in github action · Issue #5
but yarn build fails without running yarn dev first on local environment. and in my github action, wasm-pack and rust is available.. i've...
Read more >
Sometimes run build will fail · Issue #4624 · vitejs/vite - GitHub
When I run build, sometimes it will fail, sometimes it will succeed. Just like schrodinger's cat. You may try several times to observe...
Read more >
error during build · Issue #6398 · vitejs/vite - GitHub
Describe the bug $ npm run vite:build operation-new@3.13.0 vite:build ... Failed at the operation-new@3.13.0 vite:build script. npm ERR!
Read more >
Error while building a project that compiles just fine in dev mode
Describe the bug I have a project that runs just fine with Vite in development mode but fails to build in production mode....
Read more >
vite build fails · Issue #1238 · vitejs/vite - GitHub
Run vite or vite build with the --debug flag. Provide the error log here.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found