Can't build with yarn2
See original GitHub issue- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
When I run yarn start
I get:
Failed to compile.
./.yarn/cache/jss-plugin-rule-value-function-npm-10.1.1-f63c97f8af-2.zip/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js
Module not found: jss-plugin-rule-value-function tried to access tiny-warning, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Expected Behavior 🤔
Steps to Reproduce 🕹
Steps:
- mkdir test
- cd test
- yarn set version berry
- yarn dlx create-react-app my-app --template typescript
- cd my-app
- yarn add @material-ui/core
- add a simple
<Button>Test</Button>
to App.tsx (withimport Button from '@material-ui/core/Button';
) - yarn start
Context 🔦
I’m trying to use yarn2 to get that sweet zero-Installs feature.
Your Environment 🌎
OS: NixOS unstable
Tech | Version |
---|---|
Material-UI | v4.9.12 |
React | 16.13.1 |
Browser | Firefox |
TypeScript | 3.7.2 |
yarn | 2.0.0-rc.32 |
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Can't use yarn build command · Issue #109 - GitHub
I recently migrate successfully my project from Yarn 1 to Yarn 3. After a yarn install which worked like a charm, the yarn...
Read more >Troubleshooting | Yarn
Ever. If you get it, it very likely means that your application is not running with the PnP resolver, meaning that your require...
Read more >Building a Monorepo with Yarn 2 - Heroku Blog
We will cover taking advantage of Yarn 2's cache to manage monorepo dependencies. Prerequisites for this include a development environment with ...
Read more >Next.js with Yarn pnp in a mono repo keep failing when trying ...
It seems like the main problem here is the build tool, because when I run the Next.js server itself ( yarn dev )...
Read more >Getting started with Yarn 2 and TypeScript | by xsmith - Medium
One of the best things about Yarn 2 is that it started using available resources instead of forcing you to adapt to new...
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
Requires the release of https://github.com/cssinjs/jss/pull/1315
If you want to be notified when this issue is fixed watch https://github.com/cssinjs/jss for releases (click “watch” and then “releases only”). More specifically, watch for the next release of
jss-plugin-rule-value-function
.