-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
aurelia-validation is not an ES module #417
Comments
If you add It's |
Not sure if that will be enough... It would also need |
I can try tomorrow. End of day here |
sounds good- let me know what you find |
Confirmed, just adding the following code solves the issue
Is it something added manually or by turning some flag in the build script? |
Could you try one other thing? Remove the
|
Will check tomorrow
…On 21 Feb 2017 1:23 PM, "Jeremy Danyow" ***@***.***> wrote:
Could you try one other thing? In your SystemJS config, add:
meta: {
'aurelia-validation': { esModule: true, format: 'cjs' }, // (or format: 'amd' depending on which one you're loading)
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#417 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADimvPrSiHbm4dWBmd7HbPpaVkzmQOcNks5rekqbgaJpZM4MFuc9>
.
|
maybe one of these will do the trick:
I'm still researching the best way to add the |
I'm submitting a feature request
Library Version:
1.0.0-beta.1.0.0
Operating System:
Windows 10
Node Version:
6.4.0
NPM Version:
3.10.3
JSPM OR Webpack AND Version
JSPM 0.17.0-beta.40
Browser:
all
Language:
TypeScript 2.0
Current behavior:
import { ValidationRules } from "aurelia-validation";
imports undefined valueExpected/desired behavior:
import { ValidationRules } from "aurelia-validation";
imports a classWhat is the expected behavior?
Importing a class
What is the motivation / use case for changing the behavior?
Most of the aurelia modules are ES modules which allows using named imports.
With SystemJS 0.20 being now compliant with CTC NodeJs ES module directions (https://github.com/nodejs/CTC/pull/60/files#diff-2b572743d67d8a47685ae4bcb9bec651R217, https://github.com/systemjs/systemjs/releases/tag/0.20.0) we cannot use named imports anymore. This might become true for webpack loader as well.
This forces developers using a different import syntax
The text was updated successfully, but these errors were encountered: