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

File gets imported twice when imported using * as and regular #172

Closed
natew opened this issue Dec 5, 2017 · 2 comments
Closed

File gets imported twice when imported using * as and regular #172

natew opened this issue Dec 5, 2017 · 2 comments

Comments

@natew
Copy link

natew commented Dec 5, 2017

Doing this seems to instantiate the file twice for me (on master):

# file A
import * as Something from './something'

# file B

import SomethingDefault from './something'

# something.js

console.log('hi twice')
// gets logged out twice

Just documenting to test once ng is usable, referencing this issue in our codebase.

@natew
Copy link
Author

natew commented Dec 5, 2017

Just found the real bug by doing a prod build w webpack!

I imported with capital: OraBannerStore.js when the files is oraBannerStore.js, so seems like pundle resolves it but duplicates.

@natew
Copy link
Author

natew commented Dec 5, 2017

I guess we're using CaseSensitivePaths with webpack so error is:

Module not found: Error: [CaseSensitivePathsPlugin] `/Users/nw/projects/motion/orbit/apps/web/src/stores/OraBannerStore.js` does not match the corresponding path on disk `oraBannerStore.js`

@natew natew closed this as completed Dec 13, 2017
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

1 participant