Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Packing issue with solid-auth-fetcher #32

@NSeydoux

Description

@NSeydoux

When using a fork of the demo app updated to use solid-auth-fetcher instead of solid-auth-client (available here ), the demo app only works if webpack isn't configured to exclude @solid/query-ldflex. Otherwise, the crypto object isn't resolved properly (?), and an error a.createSign is not a function is thrown.

The confusing part is that the error only manifests when logged in.

How to reproduce

  1. Clone https://github.com/inrupt/react-components/tree/feature/experimental-auth-upgrade

  2. npm ci

  3. npm run start

  4. Go to http://localhost:8080

  5. There should be no problem yet

  6. Create an account on https://dev.inrupt.net (there is a certificate issue with the created domain, it should be resolved soon)

  7. Log in to this account from http://localhost:8080

  8. The error will appear where the user name should be displayed, and if you refresh the page, the same error will be shown instead of Ruben's name and home page. If you log out, and refresh again, the error disappears. Screencast.

  9. Stop the app

  10. In webpack/webpack.common.config.js, comment out line 24 ('@solid/query-ldflex': ['solid', 'data'],)

  11. npm run start

  12. Log in again

  13. Now, the username is properly displayed. There might be a network error on Ruben's profile, but that's an unrelated, known issue.

Version information

  • Node.js Version: v12.12.0
  • npm Version: 6.14.4
  • OS: Ubuntu 18.04-
  • Browser: Firefox 77

Additional information

  • The @solid/query-ldflex version that we depend on is also a fork, managed as a git dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions