Coder Social home page Coder Social logo

systemjs-examples's Introduction

systemjs-examples

Examples demonstrating various use cases with SystemJS.

Live demo

Live demo

Running locally

After cloning the repo, run the following in the root directory:

git clone https://github.com/systemjs/systemjs-examples.git
cd systemjs-examples

npx serve

Contributing

Please adhere to the following guidelines:

  1. Do not require an npm install or build step for running locally or for github pages deployment. This means you should push all built files to github and update the built files every time you change the source files.
  2. Please follow the directory structure that is already established. Each example should be a directory with a descriptive name. The example directory must contain an index.html file.
  3. Please do not lock your example to a specific version of system.js or s.js. You can link to the latest version of system.js and its extras with https://cdn.jsdelivr.net/npm/systemjs/dist/system.js.

systemjs-examples's People

Contributors

joeldenning avatar thorseye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

systemjs-examples's Issues

Failed to load module script

Hi @joeldenning, last night I see your video about the systemjs. I try your code in your sample, but get the error as below:

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

I run a simple html in my nginx server.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>single-spa MIS</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

  </head>
  <body>
    <div class="wrapper">
      <div id="content">
        Today, our topic is {{topic}}
      </div>
    </div>
    
    <script type="module">
      import Vue from "https://unpkg.com/browse/[email protected]/dist/vue.esm.browser.min.js"

      new Vue({
        el:"content",
        data:{
          topic:"systemJs"
        }
      })
    </script>

  </body>
</html>

Could you help me with it?

By the way, my computer is mac, and the browser is chrome with version 80.0.3987.116.

AMD example

Hi! Could someone please make an AMD example for me? I just can't get it to work. :-(

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.