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.

TypeError: Cannot read property 'modules' of undefined

See original GitHub issue

I’m getting an error building my project on Windows, everything works fine on a Mac.

[!] (plugin postcss) TypeError: Cannot read property 'modules' of undefined
TypeError: Cannot read property 'modules' of undefined
    at getExtracted (C:\sg\node_modules\rollup-plugin-postcss\dist\index.js:771:60)
    at C:\sg\node_modules\rollup-plugin-postcss\dist\index.js:814:29
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (C:\sg\node_modules\rollup-plugin-postcss\dist\index.js:19:24)
    at _next (C:\sg\node_modules\rollup-plugin-postcss\dist\index.js:41:9)
    at C:\sg\node_modules\rollup-plugin-postcss\dist\index.js:48:7
    at new Promise (<anonymous>)
    at C:\sg\node_modules\rollup-plugin-postcss\dist\index.js:37:12
    at Object.generateBundle (C:\sg\node_modules\rollup-plugin-postcss\dist\index.js:859:9)
    at Promise.resolve.then (C:\sg\node_modules\rollup\dist\rollup.js:15921:25)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
egoistcommented, Feb 3, 2020

🎉 This issue has been resolved in version 2.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

0reactions
jlkiricommented, Nov 23, 2019

I get the same error on Windows. That PR should fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'module' of undefined · Issue #1173
Typically this error is caused when you are trying to register dependencies incorrectly in your module. 2
Read more >
Cannot read property 'module' of undefined - Stack Overflow
Have you forgotten to load AngularJS before your script? The error means that the object angular hasn't been seen by Javascript yet and ......
Read more >
TypeError: Cannot read property 'module' of undefined - ionic-v3
Hi, I'm new to ionic, trying to write a simple authentication app. I received “Cannot read property 'module' of undefined” as a runtime...
Read more >
How to Avoid the Infamous "Cannot read properties of ... - Bitovi
Interpreting undefined or null as subtypes of all other types can lead to runtime problems. For example, if you try to get the...
Read more >
Why "Uncaught TypeError: Cannot read property 'module' of ...
Since it is defined as global script, it get executed on load of all the forms in platform and causing the error in...
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