ausir0726/nuxt-route-with-params

Async routes error

Closed this issue · 7 comments

Hi,

I wanted to try your little app, and after a yarn install I got this:

It seems like a webpack conflict…

In fact I don't have idea about this .
but when I check it , I find I have some CRLF and LF problem for this repo .
and I fix eslint for nuxt.config.js file ( that for airbnb config , not standard )

maybe you can help re git clone and run it .

(after fix)
route

and you should try use yarn

that so fast 😆

I tried to remove then re-clone the repo, still the same error about async routes(). Tested on macOS and Widnows.

I don’t know what’s going on. I have the same problem on my own tests, so I think it has Something to do with Something I have — or not — installed.

Thanks for your answer anyway :)

maybe you can try npm cache clean ( yarn cacne clean ) or else ?

Still Nothing. I think this is more about webpack than yarn/npm itself.

I’ll look further tonight, thanks!

@EmmanuelBeziat
today is working day 😄
my colleague have same problem like you . I find way for problem .
this problem is async/await is es2017 , you need upgrade your node js >= 7.6
only >= 7.6 node.js support async/await
because , nuxt.config.js not running in Babel compiler .

Awesome, thanks!