Hosted devel version v3.1.0 produces "require not defined"
See original GitHub issueHosted v3.1.0 (https://unpkg.com/@material-ui/core/umd/material-ui.development.js) produces “require not defined”
Previous v3.0.3 did not do this.
I simply changed our link to the previous version:
<script src="https://unpkg.com/@material-ui/core@3.0.3/umd/material-ui.development.js"></script>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
ReferenceError: require is not defined #33741 - nodejs/node
console.log(require); Run //node-v12.18.0-linux-x64/bin/node test.js; Node returns error output stating that require is not defined.
Read more >TypeScript getting error TS2304: cannot find name ' require'
Using typings (DefinitelyTyped's replacement) you can specify a definition directly from a GitHub repository. Install typings npm install typings -g --save-dev.
Read more >Using Composer to Install Drupal and Manage Dependencies
Composer can be used to manage Drupal and all dependencies (modules, themes, libraries)
Read more >How To Use Node.js Modules with npm and package.json
Press ENTER so the default version of 1.0.0 is accepted. ... If someone installs and requires your module, what you set in the...
Read more >5 Easy Ways to Fix the "jQuery is Not Defined" Error - Kinsta
Potential Causes of the “jQuery Is Not Defined” Error · Old plugins installed on your WordPress site are conflicting with ones that you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Verikon Will be fixed in v3.1.1 this weekend.
Just never use commonjs explicitly.
https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/styles/withStyles.js#L226