Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Error loading module when already loading #254

Closed
@dtinth

Description

@dtinth
  • I installed npm:midievents and npm:midifile from jspm.

  • npm:midifile depends on npm:midievents.

  • I use this code, it works fine:

    import MIDIFile from "npm:midifile"
    import MIDIEvents from "npm:midievents"
  • I ran jspm depcache midifile and jspm depcache midievents.

  • The same code, this error is shown:

    Potentially unhandled rejection [2] TypeError: "npm:[email protected]" already loading
        at c.loader (http://localhost:9000/jspm_packages/es6-module-loader.js:7:14642)
        at c (http://localhost:9000/jspm_packages/es6-module-loader.js:7:4358)
        at new b (http://localhost:9000/jspm_packages/es6-module-loader.js:7:4244)
        at b (http://localhost:9000/jspm_packages/es6-module-loader.js:7:12639)
        at x.load (http://localhost:9000/jspm_packages/es6-module-loader.js:7:21156)
        at x.$__global.upgradeSystemLoader.e.locate (http://localhost:9000/jspm_packages/system.js:1:20693)
        at http://localhost:9000/jspm_packages/es6-module-loader.js:7:13118
        at O (http://localhost:9000/jspm_packages/es6-module-loader.js:7:7222)
        at K (http://localhost:9000/jspm_packages/es6-module-loader.js:7:6854)
        at y.6.y.when (http://localhost:9000/jspm_packages/es6-module-loader.js:7:10008)
    

    Note that event with source maps, es6-module-loader does not produce a useful stack trace.

  • This may be related to https://github.com/ModuleLoader/es6-module-loader/blob/b3f641b615a82df0e13fceee3c91d4f15c35918a/src/loader.js#L344.

  • Is there any fix for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions