You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a monorepo which is currently using pnpm@8 and everything works fine.
Right now I'm trying to upgrade to pnpm@v9.
I installed [email protected] on my system, and ran pnpm i.
In one of the monorepo's apps, when I tried to run eslint I got some weird errors:
...
...
/Users/antonisprovidakis/projects/ui/apps/people-search/support/webpack/sprite.js
0:0 error Parsing error: require() of ES Module /Users/antonisprovidakis/projects/ui/node_modules/.pnpm/[email protected]/node_modules/eslint-scope/lib/definition.js from /Users/antonisprovidakis/projects/ui/node_modules/.pnpm/[email protected][email protected]/node_modules/babel-eslint/lib/require-from-eslint.js not supported.
Instead change the require of definition.js in /Users/antonisprovidakis/projects/ui/node_modules/.pnpm/[email protected][email protected]/node_modules/babel-eslint/lib/require-from-eslint.js to a dynamic import() which is available in all CommonJS modules
✖ 844 problems (844 errors, 0 warnings)
This is the content (part of it) of the package.json file:
Is somehow the public-hoist-pattern[]=*eslint* related?
I thought that public-hoist-pattern affects phantom dependencies, which in my case does not make sense, since I've been explicit on the packages/versions I need.
Maybe something else is wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on a monorepo which is currently using
pnpm@8
and everything works fine.Right now I'm trying to upgrade to
pnpm@v9
.I installed
[email protected]
on my system, and ranpnpm i
.In one of the monorepo's apps, when I tried to run
eslint
I got some weird errors:This is the content (part of it) of the
package.json
file:Also, this is the content of the
.npmrc
file located at the root of the monorepo:On the error printed when I ran eslint (see at the top), you can see that:
are used. Which is wrong, as package.json includes:
Obviously,
[email protected]
and[email protected]
are installed on other apps of the monorepo (but not in this one).Node seems to resolve modules just fine:
Is somehow the
public-hoist-pattern[]=*eslint*
related?I thought that
public-hoist-pattern
affects phantom dependencies, which in my case does not make sense, since I've been explicit on the packages/versions I need.Maybe something else is wrong?
Please help.
cc @zkochan
Beta Was this translation helpful? Give feedback.
All reactions