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.

Cannot find module "react-popper" on alternate compilations during watch mode when using typescript and node 10

See original GitHub issue

Similar to this bug: https://github.com/mui-org/material-ui/issues/11197

Only the issue happens with react-popper 0.10.4, and material-ui versions beta-41 through the latest (beta-45).

When I’m using react-scripts start via yarn start the error in the title shows up on every other recompilation. I change a file, I get the error. I change another file, I don’t get the error. I change a file, I get the error. Forever.

The problem manifests when using node 10 but not node 9. I tried yarn 2.5 and yarn 2.6 but the problem is the same. Not sure about npm.

Tech Version
Material-UI beta-41 through beta-45
React 16.3.2
yarn 1.6
react-popper 0.10.4
node 10.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
jmarcelicommented, Jun 22, 2018

I can confirm that removing "no-unused-variable": true from tslint.json is working as a workaround and adding this rule back causes this issue. Still, it would be nice to have this issue fixed properly.

6reactions
arjanfranscommented, May 9, 2018

I am using react-scripts-ts and have the same problem. It is not always react-popper, sometimes it can not find indefinite-observable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module "react-popper" on alternate compilations ...
Cannot find module "react-popper" on alternate compilations during watch mode when using typescript and node 10 #11266.
Read more >
React app build failed for popper js typescript error
1 as node modules.When i am building the app its giving below error TypeScript error in /codebuild/output/src478180495/src/app-name/node_modules ...
Read more >
Module not found: Can't resolve 'popper.js' | bobbyhadz
To solve the error "Module not found: Error: Can't resolve 'popper.js'", make sure to install the package by opening your terminal in your...
Read more >
Rollup minify - Caritas Castellaneta
We need to fulfill the following use cases: The library is written in ES6 Sep 10, 2021 · Rollup is a module bundler...
Read more >
Npm install bootstrap error. We have covered the basics of ...
In order for typescript compilation to work, you might need to install it globally with npm install typescript -g. Executing lerna run <script>...
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