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

CORBER_PLATFORM undefined #524

Closed
lougreenwood opened this issue Jul 26, 2018 · 6 comments
Closed

CORBER_PLATFORM undefined #524

lougreenwood opened this issue Jul 26, 2018 · 6 comments

Comments

@lougreenwood
Copy link

When following the guide for ember (http://corber.io/pages/frameworks/ember) - after updating my targets.js I get this error: Unknown browser undefined

If I inspect the contents of process.env I see that CORBER_PLATFORM is missing (only Corber-related env is process.env.CORBER)...

ember: 3.3.1
corber: 1.3.0
ember-cli: 3.3.0
node: 10.4.1
os: darwin x64
@alexblom
Copy link
Member

Hi @lougreenwood - can you let me know if this issue has persisted as of 1.3.1 / 1.3.2?

@lougreenwood
Copy link
Author

lougreenwood commented Aug 18, 2018

yep, looks like it, thanks!

@lougreenwood
Copy link
Author

Actually, no, I spoke too soon... Seems it's still broken, I still get Unknown browser undefined on 1.3.2

@lougreenwood
Copy link
Author

I just did some digging, I'm not sure it's a correct conclusion, but is this as simple as this line (https://github.com/isleofcode/corber/blob/master/lib/commands/build.js#L65) isn't called until after targets.js is parsed in the ember build process?

If I manually define CORBER_PLATFORM before building, everything works as expected

@alexblom
Copy link
Member

alexblom commented Oct 5, 2018

I'm actually having trouble replicating this. Can you perhaps confirm that your global and project corber versions are in the 1.3.x range?

1.3.x involved some internal changes and you could hit compat issues with both installed.

@alexblom
Copy link
Member

Closing due to inactivity, please re-open if you are still having this issue

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