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

build next@13.2.4 using pnpm. i got error like this... #477

Open
Shani-Sinojiya opened this issue May 6, 2023 · 7 comments
Open

build next@13.2.4 using pnpm. i got error like this... #477

Shani-Sinojiya opened this issue May 6, 2023 · 7 comments

Comments

@Shani-Sinojiya
Copy link

Shani-Sinojiya commented May 6, 2023

please, help me in pnpm.

  • "next": 13.2.4
  • "next-pwa": 5.6.0
Module not found: Error: Can't resolve 'babel-loader' in 'D:\project'
resolve 'babel-loader' in 'D:\project'
  Parsed request is a module
  using description file: D:\project\package.json (relative path: .)
    resolve as module
      looking for modules in D:\project\node_modules
        single file module
          using description file: D:\project\package.json (relative path: ./node_modules/babel-loader)
            no extension
              D:\project\node_modules\babel-loader doesn't exist
            .js
              D:\project\node_modules\babel-loader.js doesn't exist
        D:\project\node_modules\babel-loader doesn't exist
      D:\node_modules doesn't exist or is not a directory

webpack 5.74.0 compiled with 1 error in 1193 ms
info  - Creating an optimized production build. ELIFECYCLE  Command failed with exit code 4294967295.

Originally posted by @Shani-Sinojiya in #222 (comment)

@Shani-Sinojiya Shani-Sinojiya changed the title pnpm pakagemaneger in building error using pnpm in building error May 6, 2023
@Shani-Sinojiya Shani-Sinojiya changed the title using pnpm in building error build next@13.2.4 using pnpm. i got error like this... May 6, 2023
@pronovaso
Copy link

pronovaso commented May 16, 2023

And when you install babel-loader as dependeci manualy? It seems like NextJS remove from core.

@Shani-Sinojiya
Copy link
Author

yes, i have downloaded babel-loader dependence.

@Shani-Sinojiya
Copy link
Author

if i add _offline.tsx, i have faced that error at that time.

@elrumordelaluz
Copy link

On my side this issue is solved removing _offline.js file.

@Shani-Sinojiya
Copy link
Author

Shani-Sinojiya commented Nov 7, 2023

I want _offline.tsx file

@eddiejaoude
Copy link

eddiejaoude commented Nov 11, 2023

I get the same issue when adding the _offline.js file also - it works locally but not when building on Vercel

Note the temporary solutions did not fix it for me

  • updating .npmrc
  • installing babel-loader

@Shani-Sinojiya
Copy link
Author

Shani-Sinojiya commented Dec 28, 2023

I get the same issue when adding the _offline.js file also - it works locally but not when building on Vercel

Note the temporary solutions did not fix it for me

  • updating .npmrc
  • installing babel-loader

What should i do on host in vercel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants