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

Error running the app locally #819

Open
sheecegardezi opened this issue Nov 9, 2022 · 0 comments
Open

Error running the app locally #819

sheecegardezi opened this issue Nov 9, 2022 · 0 comments

Comments

@sheecegardezi
Copy link

I have to run this export NODE_OPTIONS=--openssl-legacy-provider to be able to run the example locally.

I was getting this error when I followed the stated steps:

$ yarn start-local

yarn run v1.22.19
$ webpack-dev-server --env.local --progress --hot --open
10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /nebula.gl/examples/advanced
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/nebula.gl/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/nebula.gl/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/nebula.gl/node_modules/webpack/lib/NormalModule.js:471:10)
    at /nebula.gl/node_modules/webpack/lib/NormalModule.js:503:5
    at /nebula.gl/node_modules/webpack/lib/NormalModule.js:358:12
    at /nebula.gl/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/nebula.gl/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/nebula.gl/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
10% building 1/4 modules 3 active ....gl/node_modules/webpack/hot/dev-server.js/nebula.gl/node_modules/loader-runner/lib/LoaderRunner.js:133
		if(isError) throw e;
		            ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/nebula.gl/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/nebula.gl/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/nebula.gl/node_modules/webpack/lib/NormalModule.js:471:10)
    at /nebula.gl/node_modules/webpack/lib/NormalModule.js:503:5
    at /nebula.gl/node_modules/webpack/lib/NormalModule.js:358:12
    at /nebula.gl/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/nebula.gl/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/nebula.gl/node_modules/loader-runner/lib/LoaderRunner.js:221:10) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.8.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Command failed: node ~/.yvm/versions/v1.22.19/bin/yarn.js start-local

Suggested update to readme:

Running the example
git clone git@github.com:uber/nebula.gl.git
cd nebula.gl
yarn
cd examples/advanced
yarn
export MapboxAccessToken='<Add your key>'
export NODE_OPTIONS=--openssl-legacy-provider
yarn start-local
You can now view and edit geometry.

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

1 participant