Closed vkurup closed 2 years ago
This gives an error for me
> esbuild --bundle app.tsx --sourcemap --minify --outdir=../beancount_import/frontend_dist --define:global=window '--define:process.env.NODE_ENV="production"'
> node_modules/styled-components/dist/styled-components.browser.esm.js:1:62: error: Could not resolve "react-is" (mark it as external to exclude it from the bundle)
1 │ ...isValidElementType as n}from"react-is";import r,{useState as o,use...
╵ ~~~~~~~~~~
1 error
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! beancount-import@0.0.1 build: `esbuild --bundle app.tsx --sourcemap --minify --outdir=../beancount_import/frontend_dist --define:global=window '--define:process.env.NODE_ENV="production"'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the beancount-import@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The version atm should be 71653c398d0706e5b3ad4272f3d998ae2d21f6ed
Ran into the same issue, solved it by running with NodeJS v15.14.0 / npm 7.9.0
Ran into the same issue, solved it by running with NodeJS v15.14.0 / npm 7.9.0
This is the answer - documentation should include reference to required NodeJS/npm version required.
Note npm can be updated by:
npm install -g npm
this can be closed I guess, it has been resolved in #118
Probably obsolete in 1.3.4
Hello, thank you for writing and maintaining this software! Just wanted to note that I was unable to run the examples using the version available on PyPI with this error:
I was able to successfully get it to work by downloading the master branch:
(in case that helps someone else until the current version is released to PyPI)