next.js: undefined is not an object (evaluating 'modules[moduleId].call')

Bug report

Describe the bug

When I’m running my next.js website on my local environment (only on local), and I try to access a page other than the homepage on an Apple device (Safari for desktop or anything on iOS), I get this error: undefined is not an object (evaluating 'modules[moduleId].call')

This is very very very specific as you can see.

Actually it doesn’t really bother me as it’s only hapenning in dev mode. And I don’t develop on Apple devices.

Screenshots

image-1

System information

  • OS: iOS 11.4.1
  • Browser: Chrome, Safari
  • Version of Next.js: 6.1.2

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 26 (4 by maintainers)

Most upvoted comments

As per https://github.com/zeit/next.js/issues/5302#issuecomment-428145987

Also this is probably a duplicate of other issues.

As per #5302 (comment)

Also this is probably a duplicate of other issues.

Hi @timneutkens, That sounds interresting. Would you mind mentioning these issues that this is a dublicate of, so I we can keep up with the progress?

Hi @timneutkens. I had to downgrade next because of this issue. Later when I have time I might find out what causes it and report it back here but it certainly still exists and makes it impossible to use next 7 so I think closing it might be premature.

it’s resolved by updating to latest canary version

+1, same here, I’m using both withLess and withCss, next version 7.0.2

Experiencing the same issue though only in Safari (out of Chrome, FF, and Safari). Super strange, already using the Canary. Can someone advice on what the cause is? Haven’t deployed the app with the error yet but concerned about deploying this to production…

Experiencing the same. I have the PostCSS plugin in my next.config.js

// next.config.js
const withSass = require('@zeit/next-sass')
module.exports = withSass()

To confirm, this bug only exists in dev? Anyone experienced this persist to prod?

I guess this issue can be closed as not reproducible as per my comment earlier: https://github.com/zeit/next.js/issues/5302#issuecomment-425060032