-
Notifications
You must be signed in to change notification settings - Fork 332
Nuxt-Community Starter Template Fails to Build #70
Comments
@dohomi hello ,I also have the same problem, |
vuejs/component-compiler-utils#15 |
Thanks @aldarund! I didn’t see that. Happy to see that this has traction on a holiday weekend. Some use the time to BBQ and celebrate with family (I am fortunate to be in this camp), and others either “working” by choice, or the less fortunate being forced to work through this minutiae. Whatever the case is for @pwang2, thank you! |
@albanm I still have a mistake |
@warriorBrian reinstall packages |
@aldarund I tried to remove node_modules, but it still does not work, so I changed module:npm install prettier@~1.12.1 to version 1.12.1. I don't know whether this should be the case all the time. |
@warriorBrian using @vue/component-compiler-utils 1.3.1 instead of previous version will work too |
@aldarund Thank you, although I can't successfully apply @vue/component-compiler-utils to solve this problem, but I hope the official can give the latest solution. Thank you. |
Hi. |
Same issue here, reinstalling packages didn't help. Tried cleaning npm cache with If you search code = prettier.format(code, { semi: false }) you'll find it in file code = prettier.format(code, { semi: false, parser: 'babylon' }) will fix all errors. |
😀. @brandonaaskov I was surprised to be mentioned here. For my case, I was enjoying some peaceful time since I have backup to take care of my 👶🏻boy over the weekend and it was an 100F hot humid afternoon. The issue has affected a few tools, projects in the eco system. AFAIK, there are
You might want to see my latest update here. vue-loader v14/v13 has also been hotfixed as @aldarund pointed out above. |
hi @brandonaaskov, the submodules have been fixed :) Can you recheck your issue and close if solved ? |
@NicoPennec, confirmed! Thanks again all! |
Hi, I've just done a fresh install like the OP did. There's no error now, but there are a lot of warning messages repeating the following text:
The same messages repeat a lot of times and almost filled up all my screen. However, the compile was successful without error. Is anyone seeing the same warning message? Is it harmful or can we safely ignore them?
|
@johnyluyte follow this , add vue-loader until nuxt upgrade |
@ausir0726 Thanks. Thought it was the template problem so I didn't checkout the nuxt issue. Very excited about the 2.0 release. |
I have this issue as well. Have used nuxt previously without any issue. I've used nuxt in prior projects, but am working on a fresh one and just got faced with this error when running
Misc: |
@tetreault node >=8.6 is required for Nuxt (see #61) your current version doesn't support spread operator. please, try to upgrade your node.js install to the latest node 8 LTS version => https://nodejs.org/en/ |
Yes i see why now @NicoPennec and I've remedied my issue. In a prior comment on another issue thread for nuxt i also asked this question: is it wise for nuxt to require a higher version of node than the current Node LTS? The nodejs site recommends v8.11.2 for current LTS, so why not peg your compatibility to the current LTS of node, rather than one just slightly higher than the LTS. You'd sure have more reach this way. Just some food for thought. |
Version
1
Reproduction link
https://cl.ly/rr5G
Steps to reproduce
Using node 8.11.2, literally just follow the instructions in the installation guide (https://nuxtjs.org/guide/installation):
Bam. Errors. Won't load in browser.
What is expected ?
It should build without errors and serve me the default start page at http://localhost:3000
What is actually happening?
I get several build errors stating "Module build failed: Error: No parser and no file path given, couldn't infer a parser" and the site won't load.
Additional comments?
This starter template is surprisingly old considering how much activity has happened with both Nuxt and Vue over that same span of time, particularly with vue-clie@3. I might be speaking out of line, but does this thing need to be updated?
The text was updated successfully, but these errors were encountered: