vue-pizza icon indicating copy to clipboard operation
vue-pizza copied to clipboard

Error when run 'npm run dev'

Open alejosv opened this issue 7 years ago • 10 comments

I have the follow message in console: error_npm_run_dev

alejosv avatar Aug 18 '17 21:08 alejosv

I've also ran into this problem. I can't quite get this package to compile yet.

If I remove the CSS definition from that line 145 I get the following error in console:

bootstrap.js?f974:1414

Uncaught Error: Bootstrap dropdown require Popper.js (https://popper.js.org)
    at eval (bootstrap.js?f974:1414)
    at eval (bootstrap.js?f974:1823)
    at Object.eval (bootstrap.js?f974:3831)
    at eval (99:3832)
    at Object.<anonymous> (app.js:1400)
    at __webpack_require__ (app.js:689)
    at fn (app.js:110)
    at eval (main.js?1c90:2)
    at Object.<anonymous> (app.js:1314)
    at __webpack_require__ (app.js:689)

Namesonic avatar Aug 22 '17 15:08 Namesonic

I added this in the index.html file at the project root inside the

and can now compile the project:
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.8.2/umd/popper.js"></script>

Namesonic avatar Aug 22 '17 15:08 Namesonic

I also removed the CSS definition at line 145, and I get the following error: selection_004

migmar70 avatar Aug 23 '17 05:08 migmar70

Yeah, I see these issues now coming from latest Bootstrap beta. I'm almost finished doing a series of good improvements on the example (which covers this issue). I'll have it up tomorrow and then we can close this issue. Thanks!

prograhammer avatar Aug 24 '17 11:08 prograhammer

@prograhammer I got it working. There are the 3 things I had to change:

  • index.html - added
  • src/assets/style/_fonts.scss - Commented out line 7
  • src/assets/style/_variables.scss - Replaced the code in lines 145 to 150 with 0: 0, 1: ($spacer * .25), 2: ($spacer * .5), 3: $spacer, 4: ($spacer * 1.5), 5: ($spacer * 3)

migmar70 avatar Aug 24 '17 12:08 migmar70

I'm about to release a major update/improvement tomorrow, look out for it. But I was curious, how married is everyone to Twitter Bootstrap? I continue to explain the caveats of setting it up, but I've switched to Buefy/Bulma for the project now (and will put the project up live on GitHub pages). Should I still bother to create an alternate repo but with Bootstrap (would still reference the Tutorial here however)?

prograhammer avatar Sep 08 '17 08:09 prograhammer

@prograhammer Many are still using Bootstrap and a migration takes time, its implementation would help resolve immediately while planning to do these migrations.

alejosv avatar Sep 15 '17 03:09 alejosv

I still have this issue, did it ever get resolved? (other than the workaround above)

ghost avatar Dec 12 '17 02:12 ghost

Sorry guys about my absence. My job pulled me away. Also, I deep dived into TypeScript and it turns out it wasn't ready for Vue. But now it's ready (a few minor issues but no deal-breakers). You can see my work here and here on it. So now I'm ready to finish the complete project overhaul I was doing on this. I hope to have it ready by next week. Hang tight!

prograhammer avatar Dec 14 '17 16:12 prograhammer

bump

AaronNGray avatar Mar 03 '18 03:03 AaronNGray