Auke
Auke
DDeno
Created by Auke on 8/19/2024 in #help
Setup for using npm packages locally + via server.ts
This works, but I don't leverage any of the npm functionality provided by Deno, and the import url looks overly specific to me
8 replies
DDeno
Created by Auke on 8/19/2024 in #help
Setup for using npm packages locally + via server.ts
import * as FloBezier from "./node_modules/flo-bezier3/browser/index.js";
8 replies
DDeno
Created by Auke on 8/19/2024 in #help
Setup for using npm packages locally + via server.ts
Say I have an import like this;
8 replies
DDeno
Created by Auke on 8/19/2024 in #help
Setup for using npm packages locally + via server.ts
Hmm, that doesn't help when serving the plain js files, as then the paths don't get resolved through the import map. My question boils down to: How can I setup my npm libraries such that I can use them both locally and when included in javascript files served to the web?
8 replies
DDeno
Created by Auke on 8/19/2024 in #help
Setup for using npm packages locally + via server.ts
Okay, I think I should look at the Deno import maps again
8 replies
DDeno
Created by Auke on 8/19/2024 in #help
Setup for using npm packages locally + via server.ts
I feel like i can't use the npm specifiers to refer to packages either, as those will break when serving .js files with paths starting with npm:
8 replies
DDeno
Created by Auke on 8/19/2024 in #help
Setup for using npm packages locally + via server.ts
I've looked in the deno documentation, but I haven't found a guide/tutorial for this setup, so feel free to point me in that direction if there is one!
8 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
Changing window to globalThis causes it to run again, but also hang again, with DENO_FUTURE=1 @bartlomieju
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
> deno run mre.ts
error: Uncaught (in promise) TypeError: Cannot use 'in' operator to search for 'Deno' in undefined
if ("Deno" in window) {
^
at file:///Users/auke/mre-deno-hang/mre.ts:1:5
> deno run mre.ts
error: Uncaught (in promise) TypeError: Cannot use 'in' operator to search for 'Deno' in undefined
if ("Deno" in window) {
^
at file:///Users/auke/mre-deno-hang/mre.ts:1:5
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
Will have a look
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
Ah, please reply on the github issue, as I don't visit discord often
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
@bartlomieju I don't think so. From what I understand, they are non-js language addons; In the repository of this library I see just js+ts: https://github.com/paperjs/paper.js
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
I'm not familiar with the term 'native add-ons'
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
It is a blocker for my thesis, so would love to find a solution to this! In the worst case I will just have to run this using Node I guess, but that would be some rewriting
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
I've added a second method of importing the library, and that also causes the hang. Going to create the issue
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
If it does, Ill create an issue on the repo!
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
Could you evaluate whether this also hangs on your side? https://github.com/aukeroorda/mre-deno-hang
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
Yeah, will have to figure out if that is enough! But looks like it, I've reduced it to one library call that is causing this to hang
25 replies
DDeno
Created by Auke on 5/7/2024 in #help
`deno run` not returning
I will try to get an mre going
25 replies