Skip to content
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

Some file are missing / Not included #252

Open
ColiZei opened this issue May 22, 2024 · 2 comments
Open

Some file are missing / Not included #252

ColiZei opened this issue May 22, 2024 · 2 comments

Comments

@ColiZei
Copy link

ColiZei commented May 22, 2024

Hello,

i use the @event-calendar/core package in a project and it depends on 3 svelte packages.

It works fine by CDN with this configuration:

# importmap.rb
pin "@event-calendar/core", to: "https://ga.jspm.io/npm:@event-calendar/[email protected]/index.js"
pin "svelte", to: "https://ga.jspm.io/npm:[email protected]/src/runtime/index.js"
pin "svelte/internal", to: "https://ga.jspm.io/npm:[email protected]/src/runtime/internal/index.js"
pin "svelte/store", to: "https://ga.jspm.io/npm:[email protected]/src/runtime/store/index.js"
pin "@event-calendar/time-grid", to: "https://ga.jspm.io/npm:@event-calendar/[email protected]/index.js"
pin "@event-calendar/interaction", to: "https://ga.jspm.io/npm:@event-calendar/[email protected]/index.js"

But if i try to download it, this is the result (preload added manually):

# importmap.rb
pin "@event-calendar/core", to: "@event-calendar--core.js", preload: true # @2.7.1
pin "svelte", preload: true # @4.2.17
pin "svelte/internal", to: "svelte--internal.js", preload: true # @4.2.17
pin "svelte/store", to: "svelte--store.js", preload: true # @4.2.17
pin "@event-calendar/time-grid", to: "@event-calendar--time-grid.js", preload: true # @2.7.1
pin "@event-calendar/interaction", to: "@event-calendar--interaction.js", preload: true # @2.7.1

Now i got missing files and the project breaks.

image

image

If i check the CDN, there are exports and import for this files.
But now they cant be found?

Example from (https://ga.jspm.io/npm:[email protected]/src/runtime/index.js):

export{SvelteComponentDev as SvelteComponent, [...] }from"./internal/index.js";import"../../_/4brMrzAu.js";import"../../_/5Rbsx6qL.js";
//# sourceMappingURL=index.js.map

Any help for this?

Thank you!

@ColiZei
Copy link
Author

ColiZei commented May 24, 2024

Updated example.

@mngb
Copy link

mngb commented Sep 24, 2024

I face the same issue. I solve this by copy files from node_modules/[js-lib]/dist/[js-file] to vendor/javascript/. Seems the command "bin/importmap pin [js-lib]" download wrong js files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants