NASA-PDS / doi-ui

The web interface for the PDS DOI Service providing the ability management PDS archive DOIs. See the DOI Service for more details on the available capabilities. https://nasa-pds.github.io/doi-service/
Apache License 2.0
0 stars 4 forks source link

service does not start on at least 2 laptops #178

Closed tloubrieu-jpl closed 1 year ago

tloubrieu-jpl commented 1 year ago

๐Ÿ› Describe the bug

When starting the application raise errors of incompatibilities and does not actually start.

๐Ÿ“œ To Reproduce

Steps to reproduce the behavior:

  1. Follow the deployment procedure using the main branch on github
  2. npm start

See error in terminal:

Failed to compile.

Module not found: Error: Can't resolve 'crypto' in '/Users/loubrieu/tmp/doi-ui/node_modules/react-oauth2-pkce/dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
    - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "crypto": false }
WARNING in ./node_modules/sax/lib/sax.js 139:13-37
Module not found: Error: Can't resolve 'stream' in '/Users/loubrieu/tmp/doi-ui/node_modules/sax/lib'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
    - install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "stream": false }

ERROR in ./node_modules/react-oauth2-pkce/dist/index.modern.js 2:0-49
Module not found: Error: Can't resolve 'crypto' in '/Users/loubrieu/tmp/doi-ui/node_modules/react-oauth2-pkce/dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
    - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "crypto": false }

ERROR in ./node_modules/string_decoder/node_modules/safe-buffer/index.js 3:13-30
Module not found: Error: Can't resolve 'buffer' in '/Users/loubrieu/tmp/doi-ui/node_modules/string_decoder/node_modules/safe-buffer'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
    - install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "buffer": false }

webpack compiled with 2 errors and 1 warning

๐Ÿ•ต๏ธ Expected behavior

The application should start

๐Ÿ“š Version of Software Used

dev version on branch main

๐Ÿฉบ Test Data / Additional context

๐ŸžScreenshots

๐Ÿ–ฅ System Info


๐Ÿฆ„ Related requirements

โš™๏ธ Engineering Details

jordanpadams commented 1 year ago

need to formalize how to commit this with @tloubrieu-jpl

jordanpadams commented 1 year ago

Status: Eddie to submit a pull request