React Build Failing (Cannot find name 'Cheerio'.)
JasonTypesCodes opened this issue · comments
The React build seems to be failing in master due to the following:
ERROR Failed to compile with 2 errors2:45:54 PM
error in /home/runner/work/generator-jhipster-micronaut/generator-jhipster-micronaut/sample-output/gradle-jwt-react/node_modules/@types/enzyme/index.d.ts
ERROR in /home/runner/work/generator-jhipster-micronaut/generator-jhipster-micronaut/sample-output/gradle-jwt-react/node_modules/@types/enzyme/index.d.ts(384,15):
TS2304: Cannot find name 'Cheerio'.
error in /home/runner/work/generator-jhipster-micronaut/generator-jhipster-micronaut/sample-output/gradle-jwt-react/node_modules/@types/enzyme/index.d.ts
ERROR in /home/runner/work/generator-jhipster-micronaut/generator-jhipster-micronaut/sample-output/gradle-jwt-react/node_modules/@types/enzyme/index.d.ts(732,69):
TS2304: Cannot find name 'Cheerio'.
That's strange. Why did the PR pipeline pass?
I had the same question. I ran the action again and it failed the same way the second time. I haven't had the opportunity to dig any deeper yet.
The problem seems to be related to a dependency of jhipster: see jhipster/generator-jhipster#12593
I see. Didn't see that issue. Good to know, so we'll wait for the 6.x fix.
I am stuck here, Any quick fix.
See jhipster/generator-jhipster#12593 (comment) for a workaround