Skip to content

Module breaks on Rollup/Vite #378

Description

@jerryjappinen

Describe the bug
When using the auth module on Nuxt 3, which runs on Rollup and Vite, the following error will come up:

Uncaught (in promise) TypeError: (0 , import_defineToJSON.default) is not a function
    at node_modules/graphql/language/parser.mjs (@8base_auth.js:17154:37)
    at __init (chunk-6DBBYCL5.js:16:56)
    at node_modules/graphql-prettier/lib/index.js (@8base_auth.js:17728:20)
    at __require2 (chunk-6DBBYCL5.js:19:50)
    at node_modules/@8base/utils/dist/queryGenerators/queryGenerators.js (@8base_auth.js:18088:46)
    at __require2 (chunk-6DBBYCL5.js:19:50)
    at node_modules/@8base/utils/dist/queryGenerators/index.js (@8base_auth.js:18370:18)
    at __require2 (chunk-6DBBYCL5.js:19:50)
    at node_modules/@8base/utils/dist/index.js (@8base_auth.js:18517:18)
    at __require2 (chunk-6DBBYCL5.js:19:50)

To Reproduce
Clone this repo, install dependencies and run npm run dev: https://github.com/jerryjappinen/8base-auth-parser

The dev server build will break, and app will not mount (empty screen).

Expected behavior
App should build without errors and print a list of authentication strategies imported from the module.

Screenshots
image

Desktop
macOS, Chrome

Additional context
More discussion here: https://community.8base.com/t/cant-get-8base-auth-to-work/861/5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions