Coder Social home page Coder Social logo

Comments (3)

hotforfeature avatar hotforfeature commented on May 18, 2024

Do you have a .bowerrc file in the directory with bower.json that puts your bower_components/ folder in src/assets/?

.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.

from origami.

AnthonyTony12 avatar AnthonyTony12 commented on May 18, 2024

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:

capture-transpiler-error

from origami.

hotforfeature avatar hotforfeature commented on May 18, 2024

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.

from origami.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.