denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.29k stars 5.36k forks source link

Support Histoire (Vite based) #20606

Open birkskyum opened 1 year ago

birkskyum commented 1 year ago

Histoire - GitHub - Website

Platform

Darwin 22.6.0 arm64 arm

Version

deno 1.37.0

Repro

Expected

Histoire dev server start

Actual

➜ deno task story:dev
Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in an upcoming release.
Task story:dev histoire dev
Error while loading /Users/admin/repos/histoire-vue3-starter/histoire.config.ts
error: Uncaught (in promise) NotFound: No such file or directory (os error 2): readfile 'module'
    at Object.readFileSync (ext:deno_fs/30_fs.js:702:14)
    at readFileSync (ext:deno_node/_fs/_fs_readFile.ts:45:21)
    at jiti (file:///Users/admin/repos/histoire-vue3-starter/node_modules/.deno/jiti@1.19.3/node_modules/jiti/dist/jiti.js:1:253424)
    at data::2:19
    at data::6:4
    at evalModule (file:///Users/admin/repos/histoire-vue3-starter/node_modules/.deno/jiti@1.19.3/node_modules/jiti/dist/jiti.js:1:255456)
    at jiti (file:///Users/admin/repos/histoire-vue3-starter/node_modules/.deno/jiti@1.19.3/node_modules/jiti/dist/jiti.js:1:253384)
birkskyum commented 4 months ago

With 1.44.2 this now breaks on:

➜ DENO_FUTURE=1 deno task story:dev
Task story:dev histoire dev
Error while loading histoire.config.ts
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'env')
birkskyum commented 1 month ago

just seeing a gray screen now, with the 2.0 rc.2

birkskyum commented 1 month ago

Trying to build the whole install/build the whole histoire repo, and hit this again...