-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Addding config.kit.paths.base breaks npm run build
#2230
Comments
Facing the issue in https://github.com/mermaid-js/mermaid-live-editor |
Trying to figure out which change is causing the issue. #2189 seems to be related. |
I confirm that pnpm remove @sveltejs/kit
pnpm add -D @sveltejs/[email protected] Allows my site to build statically. It seems pnpm add -D @sveltejs/kit@next works too Edit: I was wrong, my Stacktrace``` <--- Last few GCs --->[14791:0x5fb6a90] 40386 ms: Scavenge (reduce) 2037.5 (2052.7) -> 2037.3 (2053.2) MB, 4.0 / 0.0 ms (average mu = 0.132, current mu = 0.059) allocation failure <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
|
Rectification: it works |
I'm using github pages and static adapter, with base path to deploy mermaid live editor and it works without any issue on 147. https://github.com/mermaid-js/mermaid-live-editor/blob/master/svelte.config.js |
Yes, you're right! After reading your comment, I re-examined my code, and I had a single hard-coded href to the homepage that wasn't using |
I am getting a 404:
1.0.0-next.147: works |
I am having this issue too, and just to follow-up on @derolf's comment, for a workaround, if you run:
If seems to work. |
Just wanted to note im facing the same issue. setting I was using |
Thanks very much, helps me a lot❤ |
Describe the bug
On versions >1.0.0-next.147 adding a 'base' path to the project makes it no longer build.
This happens while using adapter-static
Reproduction
npm init svelte@next my-app
cd my-app
npm install
npm run dev -- --open
Install with npm i -D @sveltejs/adapter-static@next, then add the adapter to your svelte.config.js:
npm run build
Logs
System Info
Severity
blocking an upgrade
Additional Information
Changing back to version 1.0.0-next.147 stops the error on my personal repo, but it does not seem to work on the example project.
The text was updated successfully, but these errors were encountered: