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.

`npm run build` broken

See original GitHub issue

I ran npx preact-cli create typescript preact-ts, and npm run build is failing without any changes to the source. npm run dev did work, however.

preact-ts % npm run build

> preact-ts@0.0.0 build
> preact build

✖ ERROR ./tests/__mocks__/setupTests.ts
ERROR in ./tests/__mocks__/setupTests.ts(5,5):
TS2322: Type 'Adapter' is not assignable to type 'EnzymeAdapter'.
  The types returned by 'createElement(...)' are incompatible between these types.
    Type 'VNode<any>' is not assignable to type 'ReactElement<any, string | JSXElementConstructor<any>>'.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rschristiancommented, Apr 13, 2022

Hopefully this will be resolved in the next couple of days, sorry for the inconvenience.

Release weeks are always a bit turbulent 😅

1reaction
rschristiancommented, Apr 13, 2022

Open is good. Might catch others who run into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

code broke when use 'npm run build',but works fine at 'npm start'
code broke when use 'npm run build',but works fine at 'npm start' #7124 ... Node: 10.15.3 - C:\Program Files\nodejs\node.EXE Yarn: Not Found
Read more >
Errors when running npm run build - node.js - Stack Overflow
Im trying to create my built folder for a react project, but I get this error when I run the command 'npm run...
Read more >
First time trying to do "npm run build" and nothing gets built
First time trying to do "npm run build" and nothing gets built ... idea is that the commit you're currently on might be...
Read more >
styles broken after npm run build - Prime Community Forum
Dear colleagues! I'm novice with React, UI & js :-) . So, my application on primereact working fine with development server.
Read more >
Azure pipelines | npm build broken on ubuntu-latest image
Hi, Thanks for posting here . Please check if you run the first : npm install before npm start . ... Please also...
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