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

🐛 Build error: Rollup failed to resolve import #127

Open
SivertGullbergHansen opened this issue Mar 3, 2024 · 2 comments
Open

🐛 Build error: Rollup failed to resolve import #127

SivertGullbergHansen opened this issue Mar 3, 2024 · 2 comments

Comments

@SivertGullbergHansen
Copy link

SivertGullbergHansen commented Mar 3, 2024

Command: yarn build
Not sure what to make of this, as I have little to no knowledge with Rollup and Vite 🧑‍🚀
(Project was made using the command yarn create vocs)

The error in question:

PS C:\Users\Sivert\Desktop\tournament\docs> yarn build
yarn run v1.22.21
warning package.json: No license field
$ vocs build

  [building] [email protected]

✖ bundles failed to build: [vite]: Rollup failed to resolve import "C:UsersSivertDesktop        ournamentdocs
ode_modules
ocs_lib
ite.vocs        heme.css" from "virtual:styles".
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 Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

In the file virtual-styles.ts we are trying to import this css file...
image

Something about importing an empty css file?
image

@chengpeiquan
Copy link

Looks like it's related to #52 , I tried fixing it at PR #128 .

@SivertGullbergHansen
Copy link
Author

☝🏼 Indeed, and I also noticed I cannot start dev mode now. It happened after building, and I assume somehow the build stopped before it finished, which destroyed my project 😛

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