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

pages/_offline.tsx addition causes build failure #468

Open
andrewBsk opened this issue Mar 31, 2023 · 2 comments
Open

pages/_offline.tsx addition causes build failure #468

andrewBsk opened this issue Mar 31, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@andrewBsk
Copy link

andrewBsk commented Mar 31, 2023

Summary

Following the guide lines from here, when i added a pages/_offline.tsx file i get a build failure.

Versions

  • next-pwa: 5.6.0
  • next:12.2.6

Expected Behaviors

Should build

Screenshots

image

@andrewBsk andrewBsk added the bug Something isn't working label Mar 31, 2023
@andrewBsk andrewBsk changed the title _offline.tsx addition causes build failure pages/_offline.tsx addition causes build failure Mar 31, 2023
@Jozwiaczek
Copy link

@andrewBsk I found a temporary solution, you can just manually install babel-loader.

In my case, this error appeared due to adding a custom worker but adding babel-loader as a dependency solved this issue.
As I mentioned, this doesn't seem like an ideal solution.
I'm using next-pwa within my monorepo with nx and I have some feeling that this error might connect with this 😄

@andrewBsk
Copy link
Author

@andrewBsk I found a temporary solution, you can just manually install babel-loader.

In my case, this error appeared due to adding a custom worker but adding babel-loader as a dependency solved this issue. As I mentioned, this doesn't seem like an ideal solution. I'm using next-pwa within my monorepo with nx and I have some feeling that this error might connect with this 😄

That worked @Jozwiaczek 😀

Tom-Bury added a commit to Tom-Bury/Liesbury-Recipes that referenced this issue Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants