Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERR_PACKAGE_PATH_NOT_EXPORTED] #6

Open
Nextdrive-NeilChen opened this issue Jul 24, 2020 · 3 comments
Open

[ERR_PACKAGE_PATH_NOT_EXPORTED] #6

Nextdrive-NeilChen opened this issue Jul 24, 2020 · 3 comments

Comments

@Nextdrive-NeilChen
Copy link

I just want to share how I have finally got this project (what a great project!! thanks to NelsonEAX) to run in dev mode in my env (Ubuntu 18.04 with using nvm to install node v12.18.3):

Follow along README.md, when npm run serve I got:

> vue-cli-service serve --https

 INFO  Starting development server...
98% after emitting CopyPlugin

 ERROR  Failed to compile with 1 errors                               8:27:35 PM

 error  in ./src/main.js

Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /home/neil/Projects/vue-vuetify-admin/node_modules/@babel/helper-compilation-targets/package.json

Google searches found me: How to fix “Module build failed (from ./node_modules/babel-loader/lib/index.js):”? and Error: Missing class properties transform

so I did:

$ npm install @babel/core @babel/preset-env --save-dev
$ npm install @babel/plugin-proposal-class-properties --save-dev

in the project root I added a .babelrc which is a json:

{
	plugins: ['@babel/plugin-proposal-class-properties']
}

also I touched babel.config.js so it looks like:

module.exports = {
  presets: [
	'@vue/app',
	'@babel/preset-env'
  ],
};

then I did:

$ npm install
$ npm run serve

then I can visit https://localhost:8080

hopefully the above findings can save some of your time if you are having the same trouble as I have had.

@vtigranv
Copy link

+1

@KishanRanoliya
Copy link

KishanRanoliya commented Mar 17, 2021

  1. Change "serve": "vue-cli-service serve --https" to "serve": "vue-cli-service serve" in package.json
  2. Delete package-lock.json
  3. Delete node_modules directory
  4. Run Bellow Command
    npm install
    npm run serve

@SSaeedHoseini
Copy link

SSaeedHoseini commented Feb 20, 2022

try this npm install @babel/helper-compilation-targets --save-dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants