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.

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:

  1. mkdir test
  2. cd test
  3. yarn set version berry
  4. yarn dlx create-react-app my-app --template typescript
  5. cd my-app
  6. yarn add @material-ui/core
  7. add a simple <Button>Test</Button> to App.tsx (with import Button from '@material-ui/core/Button';)
  8. 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
eps1loncommented, Apr 27, 2020
2reactions
eps1loncommented, May 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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