Giter Site home page Giter Site logo

create-nuxt-app's Introduction

Create Nuxt App

NPM version NPM downloads GitHub Action

Create a Nuxt.js project in seconds

Usage

Make sure you have npx installed (npx is shipped by default since npm 5.2.0)

npx create-nuxt-app <my-project>

Or starting with npm v6.1 you can do:

npm init nuxt-app@latest <my-project>

Or with yarn:

yarn create nuxt-app <my-project>

Features πŸŽ‰

  1. Package manager
    • Yarn
    • Npm
  2. Programming language
    • JavaScript
    • TypeScript
  3. UI framework:
  4. Template engine
    • HTML
    • Pug
  5. Nuxt.js modules:
  6. Linting tools:
  7. Testing framework:
  8. Rendering mode
  9. Deployment target
  10. Development tools
  11. Continuous Integration

CLI Options

--edge

Alias: -e.

To install nuxt-edge instead of nuxt, add the command line option --edge:

npx create-nuxt-app <my-project> --edge

Or

npm init nuxt-app <my-project> --edge

Or

yarn create nuxt-app <my-project> --edge

--info

Alias: -i. Print out debugging information relating to the local environment and exit.

--help

Alias: -h. Show the help information and exit, include: usage, command and all cli options.

--verbose

Show debug logs

--version

Alias: -v. Show version number and exit.

--overwrite-dir

Overwrite the target directory.

Credits

create-nuxt-app's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

create-nuxt-app's Issues

404 - This page could not be found

I'm create a nuxt app with settings below

  • No backend framework
  • Vuetify
  • No axios
  • ESLint

and every page when that i'm access show in log this message: { statusCode: 404, message: 'This page could not be found' }. I wanna to know where and why this message is outputted.

This question is available on Nuxt.js community (#c12)

Adonis 4.1 support

What problem does this feature solve?

keep the template up to date.

This feature request is available on Nuxt.js community (#c31)

Hot Reloading Issue / This page could not be found

I tried creating apps with each of these configurations (With create-nuxt-app, but I tried without it and I had the same issue after adding a simple error page and a nuxt link to a random page to check the error page):
no custom server framework, no custom UI framework, universal, no axios, no eslint, npm
express, bootstrap, universal, no axios, no eslint, npm

I need to specify that I tried with https only.

After I start the dev server with npm run dev and try to go to the dev server address I see the page and it always refreshes with the following server logs:
e857c1ffd95d1e108a2fc97bd8e19f30

And this chrome console output:
246e8e711a93c465026aadbc94ff6fbc

EDIT: I just tried connecting with the IP and port, not the domain, and it now works perfectly. I think the problem is from the nginx reverse proxy. Here is my configuration:

server {
    listen   443 ssl;
    
    ssl on;
    ssl_certificate /etc/nginx/ssl/api/ssl.pem;
    ssl_certificate_key /etc/nginx/ssl/api/ssl.key;

    ssl_session_timeout 5m;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
    ssl_prefer_server_ciphers on;

    server_name beta.example.com;
    
    location / {
        proxy_set_header        Host $host;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        X-Forwarded-Proto $scheme;
        proxy_pass              https://localhost:8443;
        proxy_read_timeout      90;
        proxy_redirect          https://localhost:8443 https://beta.example.com;
    }
}
This question is available on Nuxt.js community (#c15)

Add i18n as a step in the process

Title says it all, there is an i18n example in the documentation, though I think i18next would be preferable.

The documentation example, however, is naΓ―ve, it places the locales in one folder, which is okay for a framework default and as a starting point. As a developer with some localization experience I prefer to make each class/plugin/component etc. have their data, configuration, locales, etc. in the same place for maintenance and of course for creating parts that do one thing only.

I guess it's up to me to tool this?

This question is available on Nuxt.js community (#c21)

BrowserslistError: Unknown browser query `dead` error

Version

v1.2.0

Reproduction link

https://github.com/nuxt-community/create-nuxt-app

Steps to reproduce

i tried to create a new project. but it shows an error in Bootstrap. i think we need to downgrade boostrap version. how to fix this for all, instead of me without having a pane.

nuxt-issue.PNG

I fixed the issue by downgrading the Bootstrap version into 4.0.0 or 4.1.0 (remove ^ before the version number and put 4.0.0 or 4.1.0)

What is expected ?

fix this for all.

What is actually happening?

version mismatch break!

This bug report is available on Nuxt community (#c51)

nuxt express integration

do i have to configure express to connect with nuxt?

or is it fully automated to connect express with nuxt?

though nuxt can automatically generate route through /page folder

i just want to know if it is possible with express.

This question is available on Nuxt.js community (#c33)

Upgrade to feathers 3

This cli tool is easy for me to create a nuxt project and I love it!

but I got some question about 'why not upgrade nuxt and feathers to last version?'

This question is available on Nuxt.js community (#c26)

Creating a new brand project is failing

Version

v1.1.1

Reproduction link

http://no-need-for-a-link.example.com

Steps to reproduce

➜ npx create-nuxt-app anime-list-front
npx : 307 installΓ©(s) en 9.648s

Generating Nuxt.js project in /Users/Oliboy50/anime-list-front
? Project name anime-list-front
? Project description anime-list-front
? Use a custom server framework none
? Use a custom UI framework bulma
? Choose rendering mode Universal
? Use axios module yes
? Use eslint yes
? Author name Oliboy50
? Choose a package manager npm

➜ cd anime-list-front
➜ anime-list-front git:(master) βœ— npm run dev

// it should already work here
// but let's retrying after installing npm dependencies ourselves

➜ anime-list-front git:(master) βœ— npm install
➜ anime-list-front git:(master) βœ— npm run dev

// it still does not work (but with another unrelated error)

What is expected ?

  1. Choosing the "npm" package manager, I shouldn't see "yarn install v0.27.5" (or you should explain why nuxt would need it)

  2. "To get started:" section should tell to run "npm install" (or it would be even better to run it itself if possible)

  3. After running "npm install" (or not if create-nuxt-app runs it itself), the brand new project should build as expected
    which is not the case, as I still have an issue with a syntax error issue (an object spread operator which requires a bit more babel configuration)

What is actually happening?

➜ npx create-nuxt-app anime-list-front
npx : 307 installΓ©(s) en 9.648s

Generating Nuxt.js project in /Users/Oliboy50/anime-list-front
? Project name anime-list-front
? Project description anime-list-front
? Use a custom server framework none
? Use a custom UI framework bulma
? Choose rendering mode Universal
? Use axios module yes
? Use eslint yes
? Author name Oliboy50
? Choose a package manager npm
Initialized empty Git repository in /Users/Oliboy50/anime-list-front/.git/
yarn install v0.27.5
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Saved lockfile.
Done in 0.10s.

To get started:

cd anime-list-front
npm run dev

To build & start for production:

cd anime-list-front
npm run build
npm start

➜ cd anime-list-front
➜ anime-list-front git:(master) βœ— npm run dev

[email protected] dev /Users/Oliboy50/anime-list-front
nuxt

sh: nuxt: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] dev: nuxt
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Oliboy50/.npm/_logs/2018-03-31T15_38_18_929Z-debug.log

➜ anime-list-front git:(master) βœ— npm install

[email protected] install /Users/Oliboy50/anime-list-front/node_modules/fsevents
node install

[fsevents] Success: "/Users/Oliboy50/anime-list-front/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

[email protected] postinstall /Users/Oliboy50/anime-list-front/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
node lib/post_install.js

[email protected] postinstall /Users/Oliboy50/anime-list-front/node_modules/nuxt
opencollective postinstall || exit 0

                                 :=.                     
                                -=+=:   :-               
                              .-=+++=: :++=.             
                             .-+++++++=++++=.            
                            .=+++++++****++++.           
                           :=+++++++******++*+:          
                          :=+++++++********++*+:         
                         :=+++++++**********++*+-        
                        -=+++++++*************+*+-.      
                      .-=======+**************++++=.     
                      .........::::::::::::::::::::.     
                                     

                      Thanks for installing nuxt πŸ™
             Please consider donating to our open collective
                    to help us maintain this package.

                       Number of contributors: 106
                          Number of backers: 76
                        Annual budget: US$Β 11,539
                        Current balance: US$Β 2,794

       πŸ‘‰  Donate: https://opencollective.com/nuxtjs/donate

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

added 1367 packages from 732 contributors in 21.691s

➜ anime-list-front git:(master) βœ— npm run dev

[email protected] dev /Users/Oliboy50/anime-list-front
nuxt

/Users/Oliboy50/anime-list-front/node_modules/nuxt/lib/core/middleware/nuxt.js:72
const policies = this.options.render.csp.policies ?
{...this.options.render.csp.policies} : null
^^^

SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/Users/Oliboy50/anime-list-front/node_modules/nuxt/lib/core/renderer.js:19:24)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Oliboy50/.npm/_logs/2018-03-31T15_39_43_454Z-debug.log

Additional comments?

In fact, I think the "..." (from "...this.options.render.csp.policies") is broken in "nuxt" project itself, as I had the same issue on a project built using "starter" template with a old "nuxt" version which I tried to update
(then it didn't work, and I re-created a new one using "create-nuxt-app" and seeing it still didn't work, I decided to submit an issue... even if it a PITA since I had to authorize "cmty.io" to have full read/write access to everything on my github account and the organizations I belong to...)

This bug report is available on Nuxt.js community (#c30)

dev: nodemon just watching server

During development, I noticed that nodemon is set to just watch everything in the "/server" path. I don't know why that decision was made because as soon as I start developing the generated app I prefer it to look at everything.

This might be marked as no change, but perhaps it should be documented? This is something I wouldn't have been able to catch the first time I started development with node.js and Nuxt.

This question is available on Nuxt.js community (#c20)

Unable to Run Newly Created App

After creating a new Universal app and running either npm run dev or npm run build, npm exits with error.

Expected Behavior

Expect a dev server to spool up and serve the Nuxt application when running either npm run dev.

Current Behavior

npm exits with the following error:

C:\..\nuxt-test\node_modules\nuxt\lib\core\middleware\nuxt.js:72
      const policies = this.options.render.csp.policies ? {...this.options.render.csp.policies} : null
                                                           ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\..\nuxt-test\node_modules\nuxt\lib\core\renderer.js:19:24)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `nuxt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Steps to Reproduce

  1. With create-nuxt-app installed globally, run create-nuxt-app <app-name>
  2. Select Universal as the rendering mode
  3. cd <app-name> && npm run dev

Context (Environment)

Node version 8.0.0
npm version 5.0.0

Detailed Description

I encounter this issue when attempting to create a fresh universal Nuxt application. I have no additional modules or plugins added.

This question is available on Nuxt.js community (#c22)

Typescript support

It would be nice to have typescript/tslint support as part of the configuration

This feature request is available on Nuxt.js community (#c16)

Deprecated packages Tailwindcss

Hi,

I've tried creating an app all using Tailwindcss, I have the following errors though:

[1/4] πŸ”  Resolving packages...
warning nuxt > [email protected]: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
warning nuxt > webpack-bundle-analyzer > [email protected]: Switch to the `bfj` package for fixes and new features!

I have tried replacing the packages but I get

βœ— yarn remove postcss-cssnext
yarn remove v1.3.2
[1/2] Removing module postcss-cssnext...
error This module isn't specified in a manifest.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.

I can install the new packages but not remove them.

This question is available on Nuxt community (#c48)

How to put all frontend code in a folder ?

After creating new nuxt app

npx create-nuxt-app <my-project>

I placed all frontend related folders (pages, layouts, components..etc) in root folder to a folder named 'client'. I have only three folders on root level now (client, server, node_modules)

On

npm run dev

nuxt expects 'pages' folder to be in root folder and throws up an error.

Is there a value that could be changed in nuxt.config.js so that nuxt knows that all client code are in new 'client' folder ??

This question is available on Nuxt.js community (#c10)

how to use feathers generate?

Hi
Using create-nuxt-app i selected feathers in the "Use a custom server framework"
however if i want to add a feathers service it does not work properly because feathers create service expects a src folder and there is no src folder. Only a Server.
Also the code generated expects a app.js file and the code generated by create-nuxt-app does not create a app.js inside server folder..

help please

AntΓ³nio

This question is available on Nuxt community (#c40)

Updating tailwindcss - how?

I just started to try this create-nuxt-app and were happy to see that i could select tailwindcss but i can see that it's an old version and i can't figure out how to update it to the latest version (0.4.1)

Can anyone help me? :)

UPDATE - I found out that i can use the node-module instead but why isn't it using this by default?

This question is available on Nuxt.js community (#c24)

nuxt generate result not run properly

Version

v1.2.0

Reproduction link

https://github.com/IlhamWahabiGX/gamais-client

Steps to reproduce

Its just fresh project,

create-nuxt-app myapp and run npm run generate inside that. And try run index.html

What is expected ?

There is no error in console. And favicon showed.

What is actually happening?

There is error in console and there is no favicon.
chrome_2018-04-28_21-07-18.png

Additional comments?

Looks like its error in import path.

I have try open it with double-click and live-server but still error.

This bug report is available on Nuxt.js community (#c34)

hope can auto add Vuex when useing create-nuxt-app

when using create-nuxt-app to create a project ,add axios module then add @nuxtjs/auth ,and you will get error like :


<!--cmty--><!--cmty_prevent_hook-->
<div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt-community/create-nuxt-app/issues/c28">#c28</a>)</em></sub></div>

disable CSRF for SPA

i use adonis for server side api and for SPA, CSRF must be disable, so is this better disabled by default?

This question is available on Nuxt community (#c41)

Please add vuesax ui component

What problem does this feature solve?

please add vuesax,
https://lusaxweb.github.io/vuesax/vuesax/

also is it not possible to choose 2 ui frameworks to install during setup.. there might me conditions where you might need to use some elements in the second framework

What does the proposed changes look like?

it's very nice to use with tailwind for theming and custom UI

This feature request is available on Nuxt community (#c45)

issue with adonis server, bulma ui

lovelamp$ npm run dev

[email protected] dev /Users/lovelamp/dev/nuxt-proj
nodemon --watch app --watch bootstrap --watch config --watch .env -x node server.js

[nodemon] 1.17.3
[nodemon] to restart at any time, enter rs
[nodemon] watching: /Users/lovelamp/dev/nuxt-proj/app//* bootstrap /Users/lovelamp/dev/nuxt-proj/config//* .env
[nodemon] starting node server.js
SyntaxError: Unexpected token ...
at /Users/lovelamp/dev/nuxt-proj/app/Controllers/Http/NuxtController.js (/Users/lovelamp/dev/nuxt-proj/app/Controllers/Http/NuxtController.js:1:1)
[nodemon] clean exit - waiting for changes before restart

This question is available on Nuxt.js community (#c35)

Disabling the scale animation on page load

I have read all the Nuxt generated app to disable the scale loading on start in this package but I did not find it!!! How can I remove the first animation that is look like scale animation?

This question is available on Nuxt community (#c54)

Different behavior from vue-cli

Expected behavior

Creates a folder named as the project where files are

Current behavior

It downloads the files in pwd current directory

This feature request is available on Nuxt.js community (#c13)

Remove first load scale loading

This package made pages a loading on page first start. I mean the loading that first you see the page and page get a scale to huge size and then in some second it goes fit the page. I want to remove that. how can I change the settings?

This question is available on Nuxt community (#c50)

No longer can push any project created with this to git

Not sure if commit in last 20hours was the causing issue of this but any project spun up with this through npm now can no longer stage through git. Throws an error but worked previously before the last commit. If I create a nuxt project any other way, the nuxt project will stage and push to my git folder. I have other nuxt projects in my repo created with this that staged fine but were all also created prior to the last commit in the last 20 hours.

This question is available on Nuxt community (#c53)

Issue running npm dev with tailwind

Version

v1.2.0

Reproduction link

https://codepen.io

Steps to reproduce

create-nuxt-app myproject

? Project name myproject
? Project description My striking Nuxt.js project
? Use a custom server framework none
? Use a custom UI framework tailwind
? Choose rendering mode Universal
? Use axios module no
? Use eslint no
? Author name Bart
? Choose a package manager yarn

cd myproject
yarn run dev

What is expected ?

Server starting on localhost:3000

What is actually happening?

yarn run dev command fails with "MODULE_NOT_FOUND"

This bug report is available on Nuxt community (#c46)

Please add electron support

What problem does this feature solve?

Please add support to scaffold electron app.

Looking for : electron + express + vuetify + axios

This feature request is available on Nuxt community (#c43)

Module build failed

Version

v1.2.0

Reproduction link

https://github.com/factordog/nuxt-blog

Steps to reproduce

Run create-nuxt-app

  • no server
  • no ui
  • No http
  • No lint
  • install yarn or use npm

Run yarn/npm run dev

  • Observer logs in terminal

What is expected ?

Should generate build and run as expected. This is not working anymore.

What is actually happening?

Running a fresh create-nuxt-app

Using all defaults, no server, no ui, universal app etc. Just baseline. Keeps throwing an error on yarn/npm run dev:

`Module build failed: Error: No parser and no file path given, couldn't infer a parser.
at normalize (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:7051:13)
at formatWithCursor (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:10370:12)
at D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:31115:15
at Object.format (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:31134:12)
at Object.module.exports (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./.nuxt/components/nuxt-error.vue 11:0-379
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js`

Worked on previous project, but recently stopped working.

This bug report is available on Nuxt.js community (#c38)

Server Rendered Deployment (Universal)

Hi, had a look around at the issues/documentation, but couldn't find anything specific to my question:

What do we need to deploy to our server to run it in Server Rendered Deployment (Universal)?

image
image

Does this whole folder have to be deployed to the server for it to work (seems quite a lot if we have to upload all the source code to the server), or do we need to just deploy the .nuxt folder?

Any help/how it's meant to be done would be appreciated :)

This question is available on Nuxt.js community (#c18)

Weird missing dependency

Hi guys,

I created a project with create-nuxt-app and tried to start with npm run dev but I got error messages:

 ERROR  Failed to compile with 1 errors                                                                    19:52:33

This dependency was not found:

* d:\Work\tmp\nuxt-demo\.nuxt\client.js in multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js

To install it, you can run: npm install --save d:\Work\tmp\nuxt-demo\.nuxt\client.js

What is the problem? The mentioned "install ...js" message is not valid, I can't install a JS file with npm install.

Win7, Node 8.9.4

Thanks in advance!

This question is available on Nuxt.js community (#c9)

PurgeCSS

What problem does this feature solve?

Saves time setting up purgecss on new project.

What does the proposed changes look like?

Should have an option to add purgecss

This feature request is available on Nuxt community (#c55)

Module build failed

Running a fresh create-nuxt-app

Using all defaults, no server, no ui, universal app etc. Just baseline. Keeps throwing an error on yarn/npm run dev:

`Module build failed: Error: No parser and no file path given, couldn't infer a parser.
at normalize (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:7051:13)
at formatWithCursor (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:10370:12)
at D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:31115:15
at Object.format (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\prettier\index.js:31134:12)
at Object.module.exports (D:\workspace\learning\Vue\Nuxt\nuxt-blog\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

@ ./.nuxt/components/nuxt-error.vue 11:0-379
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js`

Worked on previous project, but recently stopped working.

This question is available on Nuxt.js community (#c37)

Creation of new app is crashing (Options: Express + vuetify + Universal + Axios)

Options provided to npx create-nuxt-app are as below

? Project name vuetify
? Project description My splendiferous Nuxt.js project
? Use a custom server framework express
? Use a custom UI framework vuetify
? Choose rendering mode Universal
? Use axios module yes
? Use eslint no
? Author name o1lab
? Choose a package manager npm

On npm run dev

node_modules/nuxt/lib/core/middleware/nuxt.js:72
      const policies = this.options.render.csp.policies ? {...this.options.render.csp.policies} : null
                                                           ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (...../node_modules/nuxt/lib/core/renderer.js:19:24)
[nodemon] app crashed - waiting for file changes before starting...

This question is available on Nuxt.js community (#c23)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.