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

Npm run build throws error #53

Closed
nhe23 opened this issue May 11, 2021 · 1 comment · Fixed by #52
Closed

Npm run build throws error #53

nhe23 opened this issue May 11, 2021 · 1 comment · Fixed by #52
Labels
bug Something isn't working released

Comments

@nhe23
Copy link

nhe23 commented May 11, 2021

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
image

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.

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 0.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants