Skip to content
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

Nuxt 2 Support #3

Open
MPThLee opened this issue May 28, 2018 · 14 comments
Open

Nuxt 2 Support #3

MPThLee opened this issue May 28, 2018 · 14 comments
Labels
bug Something isn't working

Comments

@MPThLee
Copy link

MPThLee commented May 28, 2018

In vue-loader, (Currently) loaders is undefined in Nuxt v2.
So it shows error like × error TypeError: Cannot set property 'ts' of undefined

This is my solution
image

@wagerfield
Copy link
Owner

Thanks for the issue @MPThLee—I haven't used Nuxt v2 yet, but will add this fix now.

@wagerfield
Copy link
Owner

This is now fixed and published to NPM on v0.8.2. Thanks again @MPThLee 🎉

@MPThLee
Copy link
Author

MPThLee commented May 28, 2018

Thank you!

@wagerfield
Copy link
Owner

...actually after testing this, it doesn't seem to work for me, so will reopen and investigate now.

@wagerfield wagerfield reopened this May 28, 2018
@wagerfield
Copy link
Owner

After some investigation, this error is actually because nuxt-edge is using Webpack 4 and with that, you need to use [email protected]. The vue-loader loaders are no longer used in nuxt-edge, so I will revert these changes for [email protected] and publish on NPM with version 1.x and then create another major version for Nuxt 2 under 2.x.

Will let you know when this is done.

@MPThLee
Copy link
Author

MPThLee commented May 28, 2018

I trying to test it myself. it seems it works without set loaders in vue-loader with [email protected].
It looks like loaders option is deprecated.

ps. It works when i set "ts-loader": "^4.3.0" in package.json during use [email protected].

Edit: Ok, I found it from nuxt/nuxt@3efbd1b (nuxt/nuxt#3093)

@wagerfield wagerfield added the bug Something isn't working label May 28, 2018
@0pt1m1z3r
Copy link
Contributor

@wagerfield 2.0 released!

@hartmut-co-uk
Copy link

I've got a project currently on nuxt-edge with TS and my custom setup - planning to move to your module along with the nuxt 2 upgrade - so would be happy to help testing and verifying if required... (will be away for 3 weeks though)

@wagerfield
Copy link
Owner

wagerfield commented Sep 24, 2018

@MPThLee @0pt1m1z3r @hartmut-co-uk I will work on support for Nuxt 2.0 over the coming days and let you know when I have published an update.

@benmccallum
Copy link

Also keen for this, do let us know how you go!

@MPThLee MPThLee changed the title Nuxt v2(nuxt-edge) Support Nuxt 2 Support Oct 13, 2018
@NickBolles
Copy link

@wagerfield How is this coming? If you haven't gotten time to work on it I can take a look and see what I can do.

@benmccallum
Copy link

Latest news there's a PR being merged into Nuxt core that will make this all possible with a config bool flag. So potentially we'll get that soon 👍

@hartmut-co-uk
Copy link

Hi, correct - there's been 2 PRs merged into nuxt-edge already - one more to go.

  • there's support via create-nuxt-app coming straight after that as well.
    Shouldn't be too much longer :-)

@wagerfield
Copy link
Owner

Apologies everyone, I've been very busy as of late so haven't had a chance to keep on top of this.

Very excited to hear that there's an official effort from the core team underway 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants