Cannot find module "react-popper" on alternate compilations during watch mode when using typescript and node 10
See original GitHub issueSimilar 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:
- Created 5 years ago
- Comments:27 (8 by maintainers)
Top 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 >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
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.I am using
react-scripts-ts
and have the same problem. It is not alwaysreact-popper
, sometimes it can not findindefinite-observable
.