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

Build error #216

Closed
kingmesal opened this issue Mar 9, 2022 · 4 comments
Closed

Build error #216

kingmesal opened this issue Mar 9, 2022 · 4 comments

Comments

@kingmesal
Copy link

Just did a fresh git clone... I get this error and it is basically the same whether running npm or yarn run build

$ NODE_ENV=production rollup -c
Error loading `tslib` helper library.
[!] Error: Package subpath './package.json' is not defined by "exports" in Dante/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json
Error: Package subpath './package.json' is not defined by "exports" in Dante/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json
    at new NodeError (node:internal/errors:372:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:433:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:712:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (Dante/node_modules/rollup-plugin-typescript2/src/tslib.ts:11:23)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@michelson
Copy link
Owner

which version of node are you using?

@kingmesal
Copy link
Author

kingmesal commented Mar 10, 2022 via email

@michelson
Copy link
Owner

uhm ... maybe you could try 15 or 16.

@kingmesal
Copy link
Author

I set it back to the LTS v16.14.0 and it in fact worked.

Also, just a note, the command in your README says
npm dante3_build

I think it should be
npm run dante3_build

I thought it would be faster mentioning here, and hopefully in the not too distant future I'll be able to help contribute to the project.

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