Ren Hiyama
Ren Hiyama
DDeno
Created by Ren Hiyama on 9/22/2023 in #help
Deno cannot import mainfile by reading from package.json
but 1.36.0 works fine (except the issue im currently having)
12 replies
DDeno
Created by Ren Hiyama on 9/22/2023 in #help
Deno cannot import mainfile by reading from package.json
maybe, cant read that code so cant confirm really.
12 replies
DDeno
Created by Ren Hiyama on 9/22/2023 in #help
Deno cannot import mainfile by reading from package.json
No description
12 replies
DDeno
Created by Ren Hiyama on 9/22/2023 in #help
Deno cannot import mainfile by reading from package.json
nixos still didnt update deno to 1.37.0 ... lemme quickly try it in ubuntu
12 replies
DDeno
Created by Ren Hiyama on 9/22/2023 in #help
Deno cannot import mainfile by reading from package.json
I'm using node compat to do the job, is that not possible?
12 replies
DDeno
Created by Ren Hiyama on 9/22/2023 in #help
Deno cannot import mainfile by reading from package.json
this problem doesnt exist on nodejs though. package.json has "main" field which says index.js is the main file. and index.js file exists.
12 replies
DDeno
Created by Ren Hiyama on 9/22/2023 in #help
Deno cannot import mainfile by reading from package.json
TypeError: Directory import /home/ren/coding/frontend/node_modules/@reejs/imports is not supported resolving import from file:///home/ren/coding/frontend/.reejs/serve/6a3aba.js
Did you mean to import index.js within the directory?
Caused by:
Is a directory (os error 21)
at async file:///home/ren/coding/frontend/node_modules/.deno/reejs@0.13.4/node_modules/reejs/src/cli/cmds/packit.js:408:30 {
code: "ERR_MODULE_NOT_FOUND"
}
TypeError: Directory import /home/ren/coding/frontend/node_modules/@reejs/imports is not supported resolving import from file:///home/ren/coding/frontend/.reejs/serve/6a3aba.js
Did you mean to import index.js within the directory?
Caused by:
Is a directory (os error 21)
at async file:///home/ren/coding/frontend/node_modules/.deno/reejs@0.13.4/node_modules/reejs/src/cli/cmds/packit.js:408:30 {
code: "ERR_MODULE_NOT_FOUND"
}
12 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
Yea deleting package.json fixes my problem. Thanks.
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
Hmm
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
@retraigo did you remove package json inside packit or the main folder?
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
I want a way without adding additional args to deno
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
@retraigo deleting package json won't fix it though
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
@retraigo could you reproduce the bug?
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
@retraigo its doesnt support windows file system urls atm, try running it on git bash terminal or wsl2
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
@retraigo ^^
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
# install reejs
npm i -g reejs
# setup project
reejs init test --features react,tailwind,api,static
# move to project
cd test
# install required deps
reejs i && reejs sync && npm i
# package current code for deno runtime, I believe deno deploy has same APIs as deno, if not more
reejs packit deno-deploy
# run the build code
deno run -A ./packit/index.js
# install reejs
npm i -g reejs
# setup project
reejs init test --features react,tailwind,api,static
# move to project
cd test
# install required deps
reejs i && reejs sync && npm i
# package current code for deno runtime, I believe deno deploy has same APIs as deno, if not more
reejs packit deno-deploy
# run the build code
deno run -A ./packit/index.js
22 replies
DDeno
Created by Ren Hiyama on 6/1/2023 in #help
Deno showing node globalThis error
I believe deno is adding so of its own lines at the top of the dependency?
22 replies