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
.yarnrc.yml contains pnpMode: loose.
I checked Webpack@4 with this plugin. Moreover, I checked webpack@next without it. In both cases I saw the same errors:
ERROR in ./.yarn/cache/pg-npm-7.18.2-f1ee9eb2c6-3.zip/node_modules/pg/lib/native/client.js
Module not found: Error: pg tried to access pg-native, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: pg-native (via "pg-native")
Required by: pg@npm:7.18.2 (via /Users/aleksandr/WebProjects/myproject/.yarn/cache/pg-npm-7.18.2-f1ee9eb2c6-3.zip/node_modules/pg/lib/native/client.js)
@ ./.yarn/cache/pg-npm-7.18.2-f1ee9eb2c6-3.zip/node_modules/pg/lib/native/client.js 11:13-33
@ ./.yarn/cache/pg-npm-7.18.2-f1ee9eb2c6-3.zip/node_modules/pg/lib/native/index.js
@ ./.yarn/cache/pg-npm-7.18.2-f1ee9eb2c6-3.zip/node_modules/pg/lib/index.js
@ ./.yarn/$$virtual/knex-virtual-69b867801e/0/cache/knex-npm-0.20.13-4602ef31f9-3.zip/node_modules/knex/lib/dialects/postgres/index.js
@ ./.yarn/$$virtual/knex-virtual-69b867801e/0/cache/knex-npm-0.20.13-4602ef31f9-3.zip/node_modules/knex/lib/dialects sync ^\.\/.*\/index\.js$
@ ./.yarn/$$virtual/knex-virtual-69b867801e/0/cache/knex-npm-0.20.13-4602ef31f9-3.zip/node_modules/knex/lib/knex.js
@ ./.yarn/$$virtual/knex-virtual-69b867801e/0/cache/knex-npm-0.20.13-4602ef31f9-3.zip/node_modules/knex/lib/index.js
@ ./.yarn/$$virtual/knex-virtual-69b867801e/0/cache/knex-npm-0.20.13-4602ef31f9-3.zip/node_modules/knex/knex.js
@ ./src/index.js
But if I do transpilation via yarn babel src -d <directory> I don't see these errors. I checked with the latest version from sources (yarn set version from sources).
The text was updated successfully, but these errors were encountered:
If I set in the webpack config mode: none or mode: development I can compile sources but I still see those messages as ERROR (not as WARNING).
And I tried with and without pnpMode: loose. Results are the same. I.e. this option doesn't change anything.
.yarnrc.yml
containspnpMode: loose
.I checked
Webpack@4
with this plugin. Moreover, I checkedwebpack@next
without it. In both cases I saw the same errors:The webpack config:
But if I do transpilation via
yarn babel src -d <directory>
I don't see these errors. I checked with the latest version from sources (yarn set version from sources
).The text was updated successfully, but these errors were encountered: