Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

fix: Non full compatibility with PNPM #573

Open
buffet-time opened this issue Oct 22, 2021 · 0 comments
Open

fix: Non full compatibility with PNPM #573

buffet-time opened this issue Oct 22, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@buffet-time
Copy link

buffet-time commented Oct 22, 2021

🐛 The bug
If you use PNPM without the shamefully-hoist flag in .npmrc then You get an error like

# ERROR  Cannot find module '@vue/composition-api' from 'E:\Programming\speedrun.website'                      13:55:46
# at Function.resolveSync [as sync] (node_modules\.pnpm\[email protected]\node_modules\resolve\lib\sync.js:102:15)
# at node_modules\.pnpm\[email protected]\node_modules\vue-server-renderer\build.prod.js:1:77905
# at Object.<anonymous> (webpack:/external "@vue/composition-api":1:0)
# at __webpack_require__ (webpack/bootstrap:25:0)
# at Module.<anonymous> (.nuxt/composition-api/register.js:1:0)
# at __webpack_require__ (webpack/bootstrap:25:0)
# at Object.<anonymous> (server.js:1496:1)
# at __webpack_require__ (webpack/bootstrap:25:0)
# at server.js:118:18
# at Object.<anonymous> (server.js:121:10)

🛠️ To reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/speedrun-website/speedrun.website
  2. with pnpm installed already run pnpm install
  3. run pnpm build
  4. run pnpm start
  5. observe below error

🌈 Expected behaviour
Using normal NPM there is no error being thrown, this is due to the hard linking.

@buffet-time buffet-time added the bug Something isn't working label Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants