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

yarn build issue #318

Open
yml-blog opened this issue Dec 2, 2024 · 2 comments
Open

yarn build issue #318

yml-blog opened this issue Dec 2, 2024 · 2 comments

Comments

@yml-blog
Copy link

yml-blog commented Dec 2, 2024

[facilmap-types]: Process started
[facilmap-types]: vite v5.2.8 building for production...
[facilmap-types]: ✓ 0 modules transformed.
[facilmap-types]: x Build failed in 1.84s
[facilmap-types]: error during build:
[facilmap-types]: RollupError: Entry module "src/index.ts" cannot be external.
[facilmap-types]: at getRollupError (file:///C:/Users/liym1/facilmap/node_modules/rollup/dist/es/shared/parseAst.js:392:41)
[facilmap-types]: at error (file:///C:/Users/liym1/facilmap/node_modules/rollup/dist/es/shared/parseAst.js:388:42)
[facilmap-types]: at ModuleLoader.loadEntryModule (file:///C:/Users/liym1/facilmap/node_modules/rollup/dist/es/shared/node-entry.js:18952:20)
[facilmap-types]: at async Promise.all (index 0)
[facilmap-types]: Process exited (exit code 1), completed in 2s 669ms

@cdauth
Copy link
Contributor

cdauth commented Dec 2, 2024

Interesting. I cannot reproduce this on my machine. I suspect it might be an issue that occurs only on Windows.
Could you, in types/vite.config.ts, replace the line that starts with external: with this:

			external: (id) => { console.log(id); return !id.startsWith("./") && !id.startsWith("../") && !id.startsWith("/") }

and then run the command again and post the output here?

@cdauth
Copy link
Contributor

cdauth commented Dec 2, 2024

Thanks. I have pushed a potential fix for this. Could you try again?

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