Skip to content

Dev server throws error and is unable to start #859

Closed
@roberthamel

Description

@roberthamel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions