Git Product home page Git Product logo

laranuxt's Introduction

Laranuxt

Laravel Vue.js Nuxt.js Vuetify ESLint Jest

Laravel + Nuxt.js template

For typescript support checkout the typescript branch.

Scripts

# *** Global ***
# development build with nuxt dev server with hot reloading
npm run dev
# production build
npm run build
# perform tests
npm run test
# find linting errors
npm run lint
# autofix linting errors
npm run lint:fix
# check for conflicting lint rules
npm run lint:check

# *** Laravel ***
# development build
npm run mix:dev
# development build with file watching
npm run mix:watch
# development build with file watching and polling
npm run mix:watch:poll
# development build with file watching, polling and hot reloading
npm run mix:hot
# production build
npm run mix:build
# perform tests (not implemented)
npm run mix:test

# *** Nuxt ***
# run dev server with hot reloading
npm run nuxt:dev
# production build
npm run nuxt:build
# perform tests
npm run nuxt:test

# *** Development ***
# cut a new release
npm run release

laranuxt's People

Contributors

gautierdele avatar mental-maze avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laranuxt's Issues

EventSource wrong MIME type

Hello,

If we use this package and run npm update to update dependencies we get this new error:
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.
This problem seems to be coming from axios because npm update @nuxtjs/axios is giving the error.
Something might have changed, did you get info on this @mentAl-maZe ?

Gautier

LaraNuxt Release

Thread to discuss properties and requirements for future LaraNuxt releases

Dev crashing

Hello,

It happens that the dev environment is crashing using npm run dev
It can happen once for 2 jours straight coding. This is pretty old but I tought this was temporary. This is coming from the changes you made @mentAl-maZe when adding new functionnalities πŸ˜ƒ

Couldn't get log since the node script is freezing, will try the next time it happens to get something out of it

Gautier

Uncaught SyntaxError: Unexpected token '<'

Hey Guys,

I'm using latest LaraNuxt and got error like this:
γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2021-02-14 13 52 01

I'm running it on Docker.

  1. Clone this repo.
  2. composer install , php artisan key:generate , npm install and npm run build .
  3. Access to http://localhost/app .

I don't use "serve" for production operation.

Nuxt router at root path

Hello,

Actually using this package with the base path ('/' instead of '/app') is making problems:

  • On dev the entire public file is deleted as intended to clear all nuxt stuff (removing robots / etc) (I found a bypass but can't remember how)
  • All nuxt files are disposed in the public folder and can make conflict with other files from laravel mix for example

I think it would be great forcing the app by default being at '/' because it seems more common.

Question: regarding the laravel-nuxt package requirement

Hey Guys,

I noticed this has been worked on for a year or more, but only recently have created a release version. I 'm down to use a template to help Laravel and Nuxt work together, but I noticed, you'r composer requirement uses another package of yours called "laravel-nuxt", which makes me think this is bigger than just a skeleton template for both frameworks. Assuming you guys are committed to making this work long term, can you explain what the "laravel-nuxt" package does to make this template function?

Looking very promising and cant wait to test it out!

500 Internal Server Error

clone repository, install dependencies and npm run dev, Listening: in http: // localhost: 3000 / app / and show server error

Can't start with npm run dev.

vagrant@homestead:~/samosbor$ npm run dev

@ dev /home/vagrant/samosbor
npm run mix:dev && npm run nuxt:dev

@ mix:dev /home/vagrant/samosbor
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

sh: 1: cross-env: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @ mix:dev: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @ mix: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! /home/vagrant/.npm/_logs/2020-06-21T12_26_19_577Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: npm run mix:dev && npm run nuxt:dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ 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! /home/vagrant/.npm/_logs/2020-06-21T12_26_19_591Z-debug.log

vagrant@homestead:~/samosbor$ cat /home/vagrant/.npm/_logs/2020-06-21T12_26_19_591Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle @~predev: @
6 info lifecycle @~dev: @
7 verbose lifecycle @~dev: unsafe-perm in lifecycle true
8 verbose lifecycle @~dev: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/vagrant/samosbor/node_modules/.bin:/home/vagrant/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle @~dev: CWD: /home/vagrant/samosbor
10 silly lifecycle @~dev: Args: [ '-c', 'npm run mix:dev && npm run nuxt:dev' ]
11 silly lifecycle @~dev: Returned: code: 1 signal: null
12 info lifecycle @~dev: Failed to exec dev script
13 verbose stack Error: @ dev: npm run mix:dev && npm run nuxt:dev
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1051:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid @
15 verbose cwd /home/vagrant/samosbor
16 verbose Linux 5.4.0-37-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "dev"
18 verbose node v14.4.0
19 verbose npm v6.14.5
20 error code ELIFECYCLE
21 error errno 1
22 error @ dev: npm run mix:dev && npm run nuxt:dev
22 error Exit status 1
23 error Failed at the @ dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Homestead, vagrant, virtualbox - last version.

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.