Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When try to build or lint my projects, the following error is caused: `has-tostringtag tried to access has-symbols, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.`

I researched for the reason and this is what I found: inspect-js/has-tostringtag@999e009
I think `has-tostringtag` should be have `has-symbols` as dependencies, not devDependencies.

I workarounded this issue by adding `has-symbols` to monorepo root devDependencies.
  • Loading branch information
somnisomni committed Feb 1, 2024
1 parent 05aefd6 commit f7262e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"has-symbols": "^1.0.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8412,6 +8412,7 @@ __metadata:
eslint: "npm:^8.56.0"
eslint-import-resolver-typescript: "npm:^3.6.1"
eslint-plugin-import: "npm:^2.29.1"
has-symbols: "npm:^1.0.3"
jest: "npm:^29.7.0"
ts-jest: "npm:^29.1.2"
typescript: "npm:^5.3.3"
Expand Down

0 comments on commit f7262e4

Please sign in to comment.