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

[1.3-modules-beta.8] Implied package exports cannot be imported #6199

Closed
reohjs opened this issue Feb 8, 2016 · 1 comment
Closed

[1.3-modules-beta.8] Implied package exports cannot be imported #6199

reohjs opened this issue Feb 8, 2016 · 1 comment
Milestone

Comments

@reohjs
Copy link
Contributor

reohjs commented Feb 8, 2016

E.g. https://github.com/meteor/meteor/blob/devel/packages/browser-policy/package.js#L8

// server
import {BrowserPolicy} from 'meteor/browser-policy';

console.log('BrowserPolicy is: ', typeof BrowserPolicy); // BrowserPolicy is: undefined

Repro:

git clone git@github.com:reohjs/meteor-issue-6199.git
cd meteor-issue-6199
meteor

OS: Windows 7
Also tested local package with same implied export format.

@stubailo stubailo modified the milestone: Release 1.3 Feb 9, 2016
@avital
Copy link
Contributor

avital commented Feb 9, 2016

This is correct behavior. Imply means "have the app behave as if it added that other package". Use this import line instead if you want access to BrowserPolicy:

import {BrowserPolicy} from 'meteor/browser-policy-common';

@avital avital closed this as completed Feb 9, 2016
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

3 participants