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

Dev server throws error and is unable to start #859

Closed
roberthamel opened this issue Feb 20, 2018 · 6 comments
Closed

Dev server throws error and is unable to start #859

roberthamel opened this issue Feb 20, 2018 · 6 comments

Comments

@roberthamel
Copy link

roberthamel commented Feb 20, 2018

This also affects building the project too.

Version

3.0.0-beta.1

Reproduction link

reproducible through cli

Steps to reproduce

Vue CLI v3.0.0-beta.1
? Please pick a preset: Manually select features
? Check the features needed for your project: TS, Router, Vuex, Unit, E2E
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript for auto-detected polyfills? Yes
? Pick a unit testing solution: Jest
? Pick a E2E testing solution: Cypress
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? No

What is expected?

Dev server to start

What is actually happening?

[...]/node_modules/regex-not/index.js:62
    throw new Error('potentially unsafe regular expression: '   res);
    ^

Error: potentially unsafe regular expression: ^(?:(?!(?:[\[!* ?$^"'.\\/] )).) 
    at Function.toRegex.create (/Users/rh/Sites/vuecli3test/node_modules/regex-not/index.js:62:11)
    at createTextRegex (/Users/rh/Sites/vuecli3test/node_modules/nanomatch/lib/parsers.js:378:22)
    at Object.<anonymous> (/Users/rh/Sites/vuecli3test/node_modules/nanomatch/lib/parsers.js:14:11)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
error Command failed with exit code 1.
@jonschlinkert
Copy link

jonschlinkert commented Feb 20, 2018

This has been fixed:

  • delete node_modules
  • reinstall everything

(You might also need to delete yarn.lock and/or package-lock.json to ensure that cached modules are not used.)

@roberthamel
Copy link
Author

roberthamel commented Feb 20, 2018

I ran these commands:

  • rm -rf node_modules
  • npm cache clear --force
  • yarn cache clean
  • yarn
    still the same problem when i run yarn serve

@jonschlinkert
Copy link

This was resolved, it is confirmed to be resolved. Make sure that all copies of regex-not are 1.0.2 (not 1.0.1)

@roberthamel
Copy link
Author

Thank you. The one step I missed was deleting the yarn.lock file before running yarn again. That fixed the issue.

@jonschlinkert
Copy link

jonschlinkert commented Feb 20, 2018

The one step I missed was deleting the yarn.lock file before running yarn again. That fixed the issue.

good suggestion. I'll add a suggestion to delete that and package-lock.json to the fix.

@roberthamel
Copy link
Author

Thank you again for the help. Much appreciated.

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

2 participants