question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Can't resolve '@builder.io/partytown/integration'

See original GitHub issue

Verify canary release

  • I verified that the issue exists in Next.js canary release

Provide environment information

    Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 19.6.0: Tue Feb 15 21:39:11 PST 2022; root:xnu-6153.141.59~1/RELEASE_X86_64
    Binaries:
      Node: 14.18.1
      npm: 8.1.0
      Yarn: 1.22.10
      pnpm: 6.32.2
    Relevant packages:
      next: 12.1.2-canary.0
      react: 17.0.2
      react-dom: 17.0.2

What browser are you using? (if relevant)

Not relevant

How are you deploying your application? (if relevant)

Vercel, next build

Describe the Bug

warn  - Compiled with warnings

./node_modules/next/dist/pages/_document.js
Module not found: Can't resolve '@builder.io/partytown/integration' in '…'

Import trace for requested module:
./node_modules/next/document.js
./src/pages/_app.tsx

To ignore the warnings, use a custom webpack config:

      config.ignoreWarnings = [
        {
          module: /\.\/node_modules\/next\/dist\/pages\/_document\.js/, 
        },
      ];

Expected Behavior

No warnings. It worked in the last next version 12.1.0.

See recent merge of https://github.com/vercel/next.js/pull/34244

I like that PR. I would love to see a fix, rather than a rollback.

@housseindjirdeh and @ijjk

To Reproduce

Use a custom _app and _document and try building with webpack.

Probably not relevant, but I am using a monorepo and custom webpack config.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
ajnartcommented, Apr 9, 2022

Can you confirm you are no longer having the issue in the latest canary? It should be fully resolved now.

Yup! I just tested, and I no longer have the issue while using canary 🥳

2reactions
jlarmstrongivcommented, Mar 31, 2022

Thank you @ijjk 👍 I really appreciate your help and patience

Read more comments on GitHub >

github_iconTop Results From Across the Web

68 Versions - npm
Start using @builder.io/partytown in your project by running `npm i @builder.io/partytown`. There are 20 other projects in the npm registry ...
Read more >
Cannot connect to builder.io using next.js - Bugs
Hi I'm going through the next.js/shopify tutorial but I can't seem the get the server up and running. I am getting some vulnerabilities...
Read more >
I am not able to run party town on one specific nextJS project.
env TypeError: Cannot read properties of undefined (reading 'split')" and "Module not found: Can't resolve '@builder.io/partytown/integration' in …
Read more >
Troubleshooting Common Errors - Gatsby
If you see errors about not being able to find a resource in the cache it may ... resolve module 'fs' or part...
Read more >
Build Resumable Apps with Qwik - Learn With Jason
And, of course, I'm working on Qwik now, one of the things we're trying to do. ... snowball effect of, you know, what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found