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

Something weird with spdx #18

Closed
conartist6 opened this issue Dec 3, 2020 · 2 comments
Closed

Something weird with spdx #18

conartist6 opened this issue Dec 3, 2020 · 2 comments

Comments

@conartist6
Copy link

I'm making this issue in case anyone else comes across this problem. I have no idea what I'm seeing yet, but will post more updates as I investigate.

$ yarn jest
# snip
    Cannot find module 'spdx-license-ids' from 'node_modules/spdx-expression-parse/scan.js'

    Require stack:
      node_modules/spdx-expression-parse/scan.js
      node_modules/spdx-expression-parse/index.js
      node_modules/validate-npm-package-license/index.js
      node_modules/normalize-package-data/lib/fixer.js
      node_modules/normalize-package-data/lib/normalize.js
      node_modules/read-pkg/index.js
      node_modules/read-pkg-up/index.js
      babel/plugins/self-import.cjs
      node_modules/@babel/core/lib/config/files/plugins.js
      node_modules/@babel/core/lib/config/files/index.js
      node_modules/@babel/core/lib/index.js
      node_modules/babel-plugin-tester/dist/plugin-tester.js
      node_modules/babel-plugin-tester/dist/index.js

The weird thing is that it seems to only happen in a branch I'm working on... But I can't figure out what's different in the branch. Nothing relevant as far as I can tell. I removed a single devDependency from package.json. If I go to the main branch it works. If I go to the other branch (oddly called __ though I don't see how that would be relevant) it fails. The branch makes the difference even if I don't run yarn. I did rm -rf node_modules && yarn but that didn't fix it. I did jest --clearCache but that had no effect.

$ yarn --version
1.22.10
$ node --version
v15.2.1
@conartist6
Copy link
Author

Ah I think I somehow cause babel to transpile something it shouldn't.

@conartist6
Copy link
Author

Hmm no I still don't quite understand how I got that error message. Somebody somewhere is doing something impure. What? I don't know. But I discovered that I can just pass {normalize: false} and that bypasses the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant