question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This does not seem to work with JSPM anymore

See original GitHub issue

@frankwallis @aluanhaddad We’re currently having some critical issues, which I think are related to https://github.com/jspm/registry/pull/1040.

Basically, when installing tslib from NPM using JSPM v0.16.52, it seems to get confused about which file is an ES module and which isn’t. When we did a jspm install this morning, it somehow ended up creating a jspm_packages/tslib@1.5.js file containing this:

export * from "npm:tslib@1.5.0/tslib.es6.js";
export {default} from "npm:tslib@1.5.0/tslib.es6.js";

Where previously, it contained this:

module.exports = require("npm:tslib@1.5.0/tslib.js");

Also, we end up with "format esm"; at the top of jspm_packages/tslib@1.5/tslib.js, where before it was "format cjs";. This makes no sense to me, as that file is clearly not an ES module, and System.js refuses to load this file, unless we enable client-side transpilation - which we won’t.

I’m not really sure what is happening here, but it’s breaking everything for us, which is a rather big problem. Do you know what is going on here, and if so, can you provide a workaround until it’s fixed? We can’t update to the latest JSPM just yet, for various reasons, so we absolutely need this to work for JSPM 0.16.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
frankwalliscommented, Mar 6, 2017

I have created the above pull request which I hope will resolve this.

0reactions
ortacommented, Oct 6, 2020

Going to close this issue as it looks sorted 👍🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

jspm/jspm - Gitter
I tried to install an old global jspm (0.16.2) and set the version in my package.json hard to 0.16.2 and did an npm...
Read more >
After bundling my aurelia app I get a: No PLATFORM.Loader ...
After bundling a simple aurelia application with jspm bundle-sfx I get the following error: No PLATFORM.Loader is defined and there is neither a...
Read more >
JSPM does not start - SAP Community
All work fine. But Java stack is SP6 yet. I want to update Java environment using JSPM but it don't start. The following...
Read more >
Jspm vs Webpack - I Like Kill Nerds
When you work with Webpack, you are working with Node modules most likely ... While Jspm might not be seen as important now...
Read more >
How I switched an Aurelia application to webpack - Jujens' blog
I was tired of JSPM which I find buggy; No need for gulp anymore; All deps are in the package.json file and node_modules...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found