Meep
Meep
DDeno
Created by Meep on 9/27/2024 in #help
Dependency tree not resolving properly for deno modules in local filesystem.
Background: I'm working on an application with many custom utilities as dependencies. I have these utilities divided out into smaller deno.json packages for better organization. All of these utility packages are on my local filesystem, and since I'm still working on development and planning still I'm unlikely to publish them at the moment. Some of these utilities depend on eachother and form a tree of package dependencies; all on my local filesystem. Some of the utilities are shared between multiple projects and are kept in a separate generic libs folder on my filesystem. Issue For some reason I'm getting an error when trying to test my application with deno run:
C:\Users\super\meep-tech\projects\Kept\deno\apps\kms> deno task run:dev

Relative import path "@meep/args" not prefixed with / or ./ or ../ and not in import map from "file:///C:/Users/super/meep-tech/libs/ts/deno/tsx/src/tsx.ts"
at file:///C:/Users/super/meep-tech/libs/ts/deno/tsx/src/tsx.ts:3:18
C:\Users\super\meep-tech\projects\Kept\deno\apps\kms> deno task run:dev

Relative import path "@meep/args" not prefixed with / or ./ or ../ and not in import map from "file:///C:/Users/super/meep-tech/libs/ts/deno/tsx/src/tsx.ts"
at file:///C:/Users/super/meep-tech/libs/ts/deno/tsx/src/tsx.ts:3:18
Given these imports in the deno.json files for each package i'd expect it to work as expected: - for @meep/kms (the app which was run)
"imports": {
"@meep/tsx": "../../../../../libs/ts/deno/tsx/src/mod.ts"
},
"imports": {
"@meep/tsx": "../../../../../libs/ts/deno/tsx/src/mod.ts"
},
- for @meep/tsx
"imports": {
"@meep/args": "../args/src/mod.ts",
},
"imports": {
"@meep/args": "../args/src/mod.ts",
},
Any advice on what I'm doing wrong?
10 replies
DDeno
Created by Meep on 9/27/2024 in #help
JXS/TSX Transformation from within browser code?
Background: I'm working on a small browser/pwa based project that allows a user to define TSX components in a web form and and then render them as previews. Question: Does Deno have a default or built in way to transform TSX that can be imbedded for use like this? My current plan was to import babel from it's npm package and use the typescript transform plugin; but if there's a more standard, efficient, or concise way built into deno that's be cool to know about! Thanks!
4 replies