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

fable-compiler-js package.json dependencies are broken #3793

Closed
ken-okabe opened this issue Mar 26, 2024 · 0 comments
Closed

fable-compiler-js package.json dependencies are broken #3793

ken-okabe opened this issue Mar 26, 2024 · 0 comments

Comments

@ken-okabe
Copy link

ken-okabe commented Mar 26, 2024

Description

https://github.com/fable-compiler/Fable/blob/main/src/fable-compiler-js/package.json

  "dependencies": {
    "fable-metadata": "^2.0.0",
    "fable-standalone": "^3.0.0"
  },

is outdated, and since

https://github.com/fable-compiler/Fable/blob/main/src/fable-compiler-js/src/app.fs

tries to call new npm package: @fable-org/fable-metadata etc., npx fable fails to launch.

node:internal/modules/esm/resolve:845
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@fable-org/fable-metadata' imported from /home/ken/Documents/p/c/fable/counter/node_modules/@fable-org/fable-compiler-js/dist/app.min.js
    at packageResolve (node:internal/modules/esm/resolve:845:9

Also,

dirname-filename-esm dependency is missing.

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'dirname-filename-esm' imported from /home/ken/Documents/p/c/fable/counter/node_modules/@fable-org/fable-compiler-js/node_modules/@fable-org/fable-metadata/index.js

Repro code

npm install fable-compiler-js
npx fable <PROJECT_PATH> <OUT_DIR> [--options]

https://www.npmjs.com/package/@fable-org/fable-compiler-js

Expected and actual results

npx fable command should work after the npm installation, but actually fails because the package.json dependencies are broken

Related information

@fable-org/fable-compiler-js
1.1.0

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