grandma-collaboration / icare

Icare is a custom "layer" of both frontend and backend, added on top of SkyPortal and shipped with added modules, to provide the features required only by Grandma.
https://grandma-skyportal.readthedocs.io/
Other
6 stars 3 forks source link

Module not found: Error: Can't resolve './Button' #94

Open JulienPeloton opened 4 months ago

JulienPeloton commented 4 months ago
ERROR in ./static/js/components/widget/SourceStatus.jsx 11:0-30
Module not found: Error: Can't resolve './Button' in '/pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/static/js/components/widget'
resolve './Button' in '/pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/static/js/components/widget'
  using description file: /pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/package.json (relative path: ./static/js/components/widget)
    Field 'browser' doesn't contain a valid alias configuration
    using description file: /pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/package.json (relative path: ./static/js/components/widget/Button)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/static/js/components/widget/Button doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/static/js/components/widget/Button.js doesn't exist
      .jsx
        Field 'browser' doesn't contain a valid alias configuration
        /pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/static/js/components/widget/Button.jsx doesn't exist
      .json
        Field 'browser' doesn't contain a valid alias configuration
        /pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/static/js/components/widget/Button.json doesn't exist
      as directory
        /pdisk/htdocs/skyportal/deployment/grandma_skyportal/patched_skyportal/static/js/components/widget/Button doesn't exist
 @ ./static/js/components/widget/RecentSources.jsx 35:0-42 464:99-111
 @ ./static/js/components/templates/DashboardGrandma.jsx 15:0-52 279:38-51
 @ ./static/js/components/templates/Main.jsx

webpack 5.89.0 compiled with 1 error in 131150 ms

@Theodlz -- an idea? This was after applying #93