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

Addon causes linked apps to error during build. "Babel loaded v6.x.x" #302

Open
Alonski opened this issue Aug 19, 2019 · 1 comment
Open

Comments

@Alonski
Copy link

Alonski commented Aug 19, 2019

I have been having issues using the latest release, v0.4, inside an addon that is linked to another app.
Steps:

  1. The addon and app have version ember-cookies: 0.4 set as a dependency.
  2. Inside the addon I yarn link
  3. Inside the app I yarn link addon
  4. I ember s in the app and get this error:
Build Error (broccoli-persistent-filter:Babel > [Babel: ember-cookies]) in ember-cookies/clear-all-cookies.js

Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.

What I think is happening is that another addon/dependency has Babel 6 declared as a dependency. This is causing the build to sometimes load Babel 6 and not Babel 7.

I ended up downgrading.
Any ideas what can be done?

@BryanCrotaz
Copy link

I'm seeing this in 0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants