-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
bug: 0.16.23, Inconsistent loading using import
#1448
Comments
It looks correct to me that |
I originally was doing However, after I tried to roll back to 0.16.20 and test things out, it starts to work again. Will continue to monitor a bit. Will close this issue now and reopen it if needed. |
Oh, by the way |
Yes I do agree there is an issue, but it is hard to pinpoint. It seems that though files are not reliably being detected as commonjs/esm. This issue is also similar: alexisvincent/systemjs-hot-reloader#42 |
I am able to reproduce the issue. It turns out to be related to the System.config({
...
typescriptOptions: {
module: "system"
...
}
...
The error come back is (note I'm using
|
I see the same behavior with momentjs. The typings suggest to import it as a module with |
Importing Correction: I forgot that
In simplest way, In this sense, Updating the table:
To technically |
Adding references |
Close as it is a duplicate of microsoft/TypeScript#5285 |
I have a ts package importing
domready
:import * as domready from 'domready';
It works fine inside the package.
domready
is resolved to the function.When I reference this package, it fails.
domready
is resolved to{ default: Function }
.Tried to trace the issue, seems like one is called by
linkDynamicModule()
L3109 (working)and the other is called by
link()
L2838 (not working).The text was updated successfully, but these errors were encountered: