[GH-ISSUE #1818] Unable to start npm run dev #574

Closed
opened 2026-03-16 16:05:35 +03:00 by kerem · 2 comments
Owner

Originally created by @gjorgic on GitHub (Sep 9, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1818

Describe the bug
Hi, I try run this project, but I have problem with runing npm run dev

Branch: main (c3e881ed77c3829894326e03becae67a6307356d)
node version: v12.19.0
npm version: 6.14.8

Error


> hoppscotch@2.0.0 dev /projects/hoppscotch
> nuxt

ℹ windicss@3.1.6 running with config: windi.config.js                                                                                                                                                                 nuxt:windicss 09:06:59

 FATAL  Package subpath './dist/vue-composition-api.esm.js' is not defined by "exports" in /projects/hoppscotch/node_modules/@vue/composition-api/package.json                                                   09:06:59

  at throwExportsNotFound (internal/modules/esm/resolve.js:285:9)
  at packageExportsResolve (internal/modules/esm/resolve.js:491:3)
  at resolveExports (internal/modules/cjs/loader.js:444:36)
  at Function.Module._findPath (internal/modules/cjs/loader.js:484:31)
  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:818:27)
  at Function.resolve (internal/modules/cjs/helpers.js:80:19)
  at Function.p [as resolve] (node_modules/jiti/dist/jiti.js:1:52953)
  at Resolver.resolveModule (node_modules/@nuxt/core/dist/core.js:263:28)
  at ModuleContainer.compositionApiModule2 (node_modules/@nuxtjs/composition-api/dist/module/index.js:152:22)
  at ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:34)


   ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
   │                                                                                                                               │
   │   ✖ Nuxt Fatal Error                                                                                                          │
   │                                                                                                                               │
   │   Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/vue-composition-api.esm.js' is not defined by "exports" in   │
   │   /projects/hoppscotch/node_modules/@vue/composition-api/package.json                                                         │
   │                                                                                                                               │
   ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hoppscotch@2.0.0 dev: `nuxt`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the hoppscotch@2.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Any idea? Thx

Originally created by @gjorgic on GitHub (Sep 9, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1818 **Describe the bug** Hi, I try run this project, but I have problem with runing `npm run dev` Branch: `main` (`c3e881ed77c3829894326e03becae67a6307356d`) node version: `v12.19.0` npm version: `6.14.8` Error ``` > hoppscotch@2.0.0 dev /projects/hoppscotch > nuxt ℹ windicss@3.1.6 running with config: windi.config.js nuxt:windicss 09:06:59 FATAL Package subpath './dist/vue-composition-api.esm.js' is not defined by "exports" in /projects/hoppscotch/node_modules/@vue/composition-api/package.json 09:06:59 at throwExportsNotFound (internal/modules/esm/resolve.js:285:9) at packageExportsResolve (internal/modules/esm/resolve.js:491:3) at resolveExports (internal/modules/cjs/loader.js:444:36) at Function.Module._findPath (internal/modules/cjs/loader.js:484:31) at Function.Module._resolveFilename (internal/modules/cjs/loader.js:818:27) at Function.resolve (internal/modules/cjs/helpers.js:80:19) at Function.p [as resolve] (node_modules/jiti/dist/jiti.js:1:52953) at Resolver.resolveModule (node_modules/@nuxt/core/dist/core.js:263:28) at ModuleContainer.compositionApiModule2 (node_modules/@nuxtjs/composition-api/dist/module/index.js:152:22) at ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:34) ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ ✖ Nuxt Fatal Error │ │ │ │ Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/vue-composition-api.esm.js' is not defined by "exports" in │ │ /projects/hoppscotch/node_modules/@vue/composition-api/package.json │ │ │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! hoppscotch@2.0.0 dev: `nuxt` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hoppscotch@2.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ``` Any idea? Thx
kerem 2026-03-16 16:05:35 +03:00
Author
Owner

@liyasthomas commented on GitHub (Sep 9, 2021):

Did you install the dependencies using npm i?

Follow the complete local dev setup steps.

If the issues still persist, please bump your NodeJS version and try again. Do let us know if the issue is resolved.

<!-- gh-comment-id:915949300 --> @liyasthomas commented on GitHub (Sep 9, 2021): Did you install the dependencies using `npm i`? Follow the complete [local dev setup steps](https://github.com/hoppscotch/hoppscotch#local-development-environment). If the issues still persist, please bump your NodeJS version and try again. Do let us know if the issue is resolved.
Author
Owner

@gjorgic commented on GitHub (Sep 9, 2021):

Upgrading NodeJS and npm to latest version fix issue; Thanks @liyasthomas

<!-- gh-comment-id:916029149 --> @gjorgic commented on GitHub (Sep 9, 2021): Upgrading NodeJS and npm to latest version fix issue; Thanks @liyasthomas
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#574
No description provided.