You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When building a sveltekit project with the current version of the adapter an error is thrown.
To Reproduce
1.Initialize svelte kit demo app
2. Add "svelte-adapter-firebase": "^0.6.3" as devDependency in package.json and configure the adapter as described in the docs
3. npm i
4. npm run build -> error occurs
Expected behavior
Npm run build works without errors
Screenshots
Additional context
I was able to fix this locally by changing const pkgjson = JSON.parse(readFileSync(fileURLToPath(new URL('package.json', import.meta.url)), 'utf-8')); to const pkgjson = JSON.parse(readFileSync(fileURLToPath(new URL('./../package.json', import.meta.url)), 'utf-8')); in the index.js file.
The text was updated successfully, but these errors were encountered:
Describe the bug
When building a sveltekit project with the current version of the adapter an error is thrown.
To Reproduce
1.Initialize svelte kit demo app
2. Add "svelte-adapter-firebase": "^0.6.3" as devDependency in package.json and configure the adapter as described in the docs
3. npm i
4. npm run build -> error occurs
Expected behavior
Npm run build works without errors
Screenshots
Additional context
I was able to fix this locally by changing
const pkgjson = JSON.parse(readFileSync(fileURLToPath(new URL('package.json', import.meta.url)), 'utf-8'));
toconst pkgjson = JSON.parse(readFileSync(fileURLToPath(new URL('./../package.json', import.meta.url)), 'utf-8'));
in the index.js file.The text was updated successfully, but these errors were encountered: