-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Nested template literals error #2345
Comments
Sorry but I can't understand your problem.
Could you provide a detailed error message?
What do you mean by "fixing the template literals"? |
Sorry. It's my first time doing this, and I'm totally noob. Just playing around with Vue.js for a while. I'm really trying to understand what is going on, because maybe I'm missing something, that's why I said I'm totally noob. So I was thinking, let's go and check source code and learn a thing or two. Take a look on the backquotes here: return `<${argName}>' must be escaped properly, right? I don't know the whole Vue architecture, so I have no authority here, but something also must be problematic with npm on linux. If I install @vue/cli using yarn, I get a totally different installation. While using npm to install @vue/cli, what I get is only the cli folder. But when I install @VUE using yarn, I get these ones: cli, cli-shared-utils, cli-ui, cli-ui-addon-webpack. Maybe this is related to the following warnings given by npm/yarn: info [email protected]: The platform "linux" is incompatible with this module. What are the good news? Well, after editing the code to Does this help? |
I'm trying to edit my comment, but the editor keeps removing my quotes. |
I guess you have a The nested template literal is legit and the encountered problem has nothing to do with it. |
You are totally right. |
Version
3.0.1
Node and OS info
Node v8.11.4 / npm 5.6.0 / yarn 1.9.4 / Fedora 28
Steps to reproduce
npm install -g @vue/cli
What is expected?
It is expected to get everything working. I just want to generate a new project and go to localhost:8080 and see my things.
What is actually happening?
@vue/cli is not installed properly.
I had Vue working on my machine without a problem. Then after upgrading @vue/cli to the newest version, everytime I tried to do a 'vue create app' project, I got an annoying error saying 'Failed to reload favicon' or something like that.
After fixing the template literals on this file (line 170) to return 'Missing required argument ${chalk.yellow(
<${argName}>
)}.', I went to @vue/cli root folder and did npm install. Now @vue/cli is installing other plugins that are required. I still have some other problems, and I'm only able to create a project when I go to the same folder where I have vue symlink. I do ./vue create app-name and I get everything working just fine.The text was updated successfully, but these errors were encountered: