Kelvin Zhao
Kelvin Zhao

Reputation: 2415

Vue Cli's default has console errors?

I'm trying to create a project using Vue Cli using the following lines,

$ npm install -g vue-cli
$ vue init webpack my-project
$ cd my-project
$ npm install
$ npm run dev

And in the console of the build, it has the following error,

Uncaught TypeError: Cannot read property 'indexOf' of null
at Object.extractShopifyDomain (content.min.js:14)
    at Object.extractCurrentDomain (content.min.js:14)
    at new <anonymous> (content.min.js:16)
    at content.min.js:15

Is it an issue with the current Vue Cli or am I doing something wrong? I haven't touched any scripts or edited anything yet. How do I resolve this?

Upvotes: 0

Views: 603

Answers (2)

WFendler
WFendler

Reputation: 94

I encountered the same thing. Discovered it was the Coupons at Checkout chrome extension causing the error.

Upvotes: 3

pszkv
pszkv

Reputation: 559

Try to update nodejs & npm. Remove node_modules folder and run npm install again. Maybe it will help.

Upvotes: 1

Related Questions