TypeError: Cannot read property 'flags' of undefined
See original GitHub issueDo you want to request a feature or report a bug? A Bug
What is the current behaviour?
Running yarn run build
when installing @types
modules breaks the build.
After installing the Typescript template, I’m trying to install styled-components, all goes fine until I install @types/styled-components
.
If the current behaviour is a bug, please provide the steps to reproduce.
preact create typescript my-project
yarn add styled-components
yarn add -D @types/styled-components
yarn run build
INTERNAL ERROR: Cannot read property 'flags' of undefined
What is the expected behaviour?
Being able to install @types
packages.
OS: macOS 10.15.3 Terminal: Hyper 3.1.0 Shell: zsh Node: v13.8.0 npm: 6.13.7 preact-cli: 2.2.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:16 (10 by maintainers)
Top Results From Across the Web
ERROR in TypeError: Cannot read property 'flags' of undefined
First check ng --version . Go to next step if you get: Angular CLI: 9.1.4 Node: 12.16 ...
Read more >Cannot read property 'flags' of undefined when running TSC ...
My particular circumstance is that only one component library package in my monorepo is producing this error. It happens when upgrading from 4.5 ......
Read more >Cannot read property 'flags' of undefined : WEB-18383
typescript compiler throw error: Error:Error has occurred in the compile process TypeError: Cannot read property 'flags' of undefined : WEB-18383.
Read more >Angular – ERROR in TypeError: Cannot read property 'flags' of ...
Angular – ERROR in TypeError: Cannot read property 'flags' of undefined. angulartypescript. I have a problem when I try to run ng serve...
Read more >Uncaught TypeError: Cannot read property 'flag' of undefined
Hello! I'll do my best to help you solve this issue. I tried to log in and check the issue, but it seems...
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
@RyanChristian4427 wrote:
My PR does not remove Jest, but it replaces outdated render spy with Enzyme integration. Just wanted to clarify that to prevent any false assumptions.
I added that, and it was just to allow the test lib to run. Nothing more. Definitely get rid of it. It was a temporary hack so all parts of the template “worked”.