-
-
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
build command fails as of latest release #250
Comments
This can be seen when trying to build the example projects in this mono repo as well - |
I wonder if this is related to me bumping the Snowpack version to the 3.0 RC (which I did because I wanted to use the new JS build API, not realising it wasn't actually in the RC yet)? They build fine for me. Do they build for you if you |
|
The CI does build the examples: Line 54 in f0507b5
|
@Conduitry i meant |
The build fails on my machine as well (Ubuntu w/ Node 14.8.0). I did |
Edit: I see what |
Downgrading Snowpack doesn't fix it for me |
WFM (following @antony's repro instructions), so I'm not going to be much help debugging I'm afraid |
I think it's to do with the diff --git a/packages/kit/src/api/build/index.js b/packages/kit/src/api/build/index.js
index fe554df..700f242 100644
--- a/packages/kit/src/api/build/index.js
+++ b/packages/kit/src/api/build/index.js
@@ -84,7 +84,8 @@ export async function build(config) {
const promises = {
transform_client: exec(`node ${snowpack_bin} build ${mount} --out=${UNOPTIMIZED}/client`, {
env: {
- SVELTE_KIT_APP_DIR: config.appDir
+ SVELTE_KIT_APP_DIR: config.appDir,
+ PATH: process.env.PATH
}
}).then(
() => {
@@ -94,7 +95,8 @@ export async function build(config) {
),
transform_server: exec(`node ${snowpack_bin} build ${mount} --out=${UNOPTIMIZED}/server --ssr`, {
env: {
- SVELTE_KIT_APP_DIR: config.appDir
+ SVELTE_KIT_APP_DIR: config.appDir,
+ PATH: process.env.PATH
}
}).then(() => {
progress.transformed_server = true; I don't know why this would be system-specific, and I don't know whether the It might be safest to use |
I don't see anything in Node's docs about automatically merging env vars, so I'm assuming that, if you pass an To avoid escaping woes, it might be possible to make use of |
I was still getting weird errors about not being able to resolve .js files when trying |
Describe the bug
The build command refers to something which cannot be found, on a brand new svelte kit project
Logs
To Reproduce
The text was updated successfully, but these errors were encountered: