-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support SystemJS with umd bundles #30
Comments
Do you have a .bowerrc {
"directory": "src/assets/bower_components"
} If not, that would explain the 404 for paper-material.html. I'm not entirely familiar with SystemJS or ASP.NET, but I think you're getting the 403 because SystemJS is trying to load a directory instead of a JS file. I'm not building umd bundles at the moment, but that's something I need to add support for. You could try changing the SystemJS config to this: {
'@codebakery/origami': 'npm:@codebakery/origami/lib/origami.js',
'@codebakery/origami/lib/collections': 'npm:@codebakery/origami/lib/collections/index.js ',
} But again, I'm not sure if that would even work until I add umd bundle support for SystemJS. Let me know if (by some chance) the above changes work. If not, I'll keep this ticket open to add SystemJS support. |
Hi @hotforfeature i do am using a .bowerrc file, with the same directory. The error of 404 for paper-material.html is still present. After making the suggested change in SystemJs.config.js, The following error i displayed: |
Yup, this is what I expect. You will eventually need to configure it to: {
'@codebakery/origami': 'npm:@codebakery/origami/bundles/origami.es5.js',
'@codebakery/origami/collections': 'npm:@codebakery/origami/bundles/origami-collections.es5.js ',
} Sadly until I package it up in this format, it won't work with SystemJS, only Webpack :( You can take a look at what I'm doing on the umd-bundle branch of this repo. I was hoping to quickly repackage it for the next release, but I'm having trouble getting a good build set up with the split package (origami main and the collections). There aren't really any good build tools out there yet for Angular libraries. It's still on my radar though, I may have better luck over the weekend figuring it out. |
Hi, I'm unable to load codebakery/origami module in my visual studio asp.net mvc application. Below is my code snippet. Can anyone help me understand what exactly is the issue here.
Thanks in advance!
-----error----
-------package.json--------
------app.module.ts---------
------main.ts------------
-----systemjs.config.js--------
-----bower.json-------
------tconfig.js-------
------layout.cshtml---------------
The text was updated successfully, but these errors were encountered: