Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken build in CI: yarn failing to build #680

Closed
andygrove opened this issue Feb 22, 2023 · 8 comments
Closed

Broken build in CI: yarn failing to build #680

andygrove opened this issue Feb 22, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@andygrove
Copy link
Member

andygrove commented Feb 22, 2023

Describe the bug
PRs are failing with

yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@emotion/styled > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "@emotion/styled > @emotion/babel-plugin > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=7.21.4".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 42.34s.
yarn run v1.22.19
$ react-scripts build
node:internal/modules/cjs/loader:571
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /home/runner/work/arrow-ballista/arrow-ballista/ballista/scheduler/ui/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:399:5)
    at exportsNotFound (node:internal/modules/esm/resolve:361:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
    at resolveExports (node:internal/modules/cjs/loader:565:36)
    at Module._findPath (node:internal/modules/cjs/loader:634:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/home/runner/work/arrow-ballista/arrow-ballista/ballista/scheduler/ui/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

To Reproduce
See PRs

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@andygrove andygrove added the bug Something isn't working label Feb 22, 2023
@andygrove
Copy link
Member Author

Notes:

npm ERR! Could not resolve dependency:
npm ERR! peer react@">=18" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/system
npm ERR!   peer @chakra-ui/system@">=1.0.0" from @chakra-ui/[email protected]
npm ERR!   node_modules/@chakra-ui/icons
npm ERR!     @chakra-ui/icons@"1.0.4" from the root project

@andygrove andygrove mentioned this issue Feb 22, 2023
@andygrove
Copy link
Member Author

also

warning "@emotion/styled > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "@emotion/styled > @emotion/babel-plugin > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > [email protected]" has incorrect peer dependency "react@^16.0.0".

@andygrove
Copy link
Member Author

@avantgardnerio @iajoiner @thinkharderdev @Dandandan @yahoNanJing I spent an hour trying to fix this but I am not very familiar with the yarn ecosystem. I think some dependency changes in the last 10 days and caused this? Would appreciate some help trying to resolve so that we can get the next Ballista release out.

@avantgardnerio
Copy link
Contributor

Got a link to the PRs?

@andygrove
Copy link
Member Author

@avantgardnerio Here is one PR where the error is happening:

#676

@avantgardnerio
Copy link
Contributor

Specific build step, for future reference: https://github.com/apache/arrow-ballista/actions/runs/4243213882/jobs/7375668846

$ react-scripts build
Creating an optimized production build...
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)

@andygrove
Copy link
Member Author

@avantgardnerio I had pushed some changes on that PR in an attempt to fix the issue, and that led to this "unsupported" issue. I have just reverted my changes there to get us back to the original error. Sorry for adding confusion to this.

@andygrove
Copy link
Member Author

Fixed in #682

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants