MustansirZia / next-express-bootstrap-boilerplate

:zap: JavaScript boilerplate for a full stack app built using React.js, Next.js, Express.js, react-bootstrap, SCSS and full SSR with eslint.
MIT License
112 stars 20 forks source link

Issues on nodemon #12

Open ShintaroNippon opened 5 years ago

ShintaroNippon commented 5 years ago

Hi there I cant start nodemon... Can you check to please my rep in order to verify if something its wrong...?

How about an upgrade to version 9 ? And the pkg?

Any result for your side.

Thanks

ShintaroNippon commented 5 years ago

I could updated to version 9 of next js and run "start": "npm run build && env NODE_ENV=production node app.js", its running ok

but I can't run "dev": " nodemon --ignore app/ app.js",

cant you help please ?

ShintaroNippon commented 5 years ago

I got this run npm run dev

[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node app.js`
> Using "webpackDevMiddleware" config function defined in next.config.js.
[ ready ] compiled successfully
[ wait ]  compiling ...
[ ready ] compiled successfully
[ event ] build page: /
[ wait ]  compiling ...

it stays stuck...

ShintaroNippon commented 5 years ago

in next.conf.js

I have this:

const compose = require("next-compose");
const withCSS = require("@zeit/next-css");
const withSass = require("@zeit/next-sass");
const withImages = require("next-images");

module.exports = compose([
  withCSS,
  withSass,
  withImages
]);
harshsingla commented 5 years ago

hi can i help you in solving this problem as i also get same problem in nodemon and dev but i solved that .

ShintaroNippon commented 5 years ago

Hi there, thanks by the reply...Can you help me further? What can I do to solve it? Thanks Carlos Vieira

harshsingla commented 5 years ago

hi, can we please give the link of your code as a have to check the scripts in your package.json file or you can try to make changes in that file

ShintaroNippon commented 5 years ago

https://github.com/ShintaroNippon/next-express-bootstrap-boilerplate .thanks!

ShintaroNippon commented 5 years ago

https://stackoverflow.com/questions/57449827/how-to-setup-node-start

harshsingla commented 5 years ago

okay i will try and get back to you sooner.

harshsingla commented 5 years ago

will i add babel or you want to only use ES6 ,as such i can try to add without babel also.

ShintaroNippon commented 5 years ago

Thanks... I have a Babel rio. But is with underscore written Apply your chances and then i check Thanks

harshsingla commented 5 years ago

okay

harshsingla commented 5 years ago

https://user-images.githubusercontent.com/44085127/63369997-dd815300-c39e-11e9-874d-6c663652b0e3.png

hi,is this working fine or more need to be changed

harshsingla commented 5 years ago

terminal https://user-images.githubusercontent.com/44085127/63370424-c3944000-c39f-11e9-8118-0c99d4d4a9d1.png

harshsingla commented 5 years ago

even i started with npm dev run its looks the same and please provide me the rights to write in the repo thanks

ShintaroNippon commented 5 years ago

Hi there. Thanks by the help... What did you changed to start with nodemon ?

ShintaroNippon commented 5 years ago

Im not sure how can I add permissions !?!?

harshsingla commented 5 years ago

hi , i added babel cli and bin file with change in the script in the package json

harshsingla commented 5 years ago

and for collaboration go for the setting and add me on contributors

ShintaroNippon commented 5 years ago

Thanks I already add permissions, can you apply the changed ? Thanks in advance

harshsingla commented 5 years ago

hi @ShintaroNippon i pushed the code you can check . thanks

ShintaroNippon commented 5 years ago

Hi there, sorry if is to much, but i have made changes like you told and after run localhost::3000 I got this

> next-express-bootstrap-boilerplate@0.1.1 dev /home/shintaro/Desktop/projects/github/frontend
> nodemon ./bin/www --exec ./node_modules/.bin/babel-node -e js

[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `./node_modules/.bin/babel-node ./bin/www`
.env.development development
> Using "webpackDevMiddleware" config function defined in next.config.js.
[ ready ] compiled successfully
[ wait ]  compiling ...
[ ready ] compiled successfully
[ event ] build page: /
[ wait ]  compiling ...

the app doesn't run in localhost:3000

only with npm run learn it works

thanks Carlos Vieira

harshsingla commented 5 years ago

Its okay but as shown in the picture of the terminal i started the terminal with "npm start" and its working fine, have you pull the request which i was commited today?

ShintaroNippon commented 5 years ago

Sorry but I dont see working with npm start, it loads as code before but when oppen localhost:3000

it doesn't show anything...

thnaks

harshsingla commented 5 years ago

then,you can do one thing make a repo and make me collaborator and i push the code and you make the fresh clone and do npm i and then check whether it is running or not. as there can be some problem in merging the code or i think you didn't accept the push that i made thanks