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 ./schemas in ./.nuxt/druxt-schema.js #443

Closed
Tracked by #444
Decipher opened this issue Feb 14, 2022 · 1 comment · Fixed by #447
Closed
Tracked by #444

Error ./schemas in ./.nuxt/druxt-schema.js #443

Decipher opened this issue Feb 14, 2022 · 1 comment · Fixed by #447
Labels
bug Something isn't working module: schema Related to the `druxt-schema` module module: site Related to the `druxt-site` module

Comments

@Decipher
Copy link
Member

Describe the bug
When running Druxt Site against a Drupal backend that has no content types, I receive the following build error:

 ERROR  Failed to compile with 1 errors                                                                                                                                                        This relative module was not found:

* ./schemas in ./.nuxt/druxt-schema.js     

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://gitpod.io/#https://github.com/druxt/quickstart-druxt-site
  2. Wait
  3. Install Drupal in Minimal profile: cd drupal && ddev drush si minimal -y
  4. Enable the Druxt module and setup the Druxt permission on the anonymous role.
  5. Start Nuxt: cd nuxt && npm run dev

or https://gitpod.io#snapshot/d5279e41-d76e-4f38-b6f9-47b52230651f

See error.

Expected behavior
If no content types are setup, Druxt Schema should not error. Druxt Site should run, and have some default or debug behaviour.

Media
image
image

Your Environment (please complete the following information):
N/A

Additional context
N/A

@Decipher Decipher added bug Something isn't working module: schema Related to the `druxt-schema` module module: site Related to the `druxt-site` module labels Feb 14, 2022
@Decipher
Copy link
Member Author

I opted to make the error more useful, as at the moment, if you have no content types the Druxt Schema module isn't overly useful.

Decipher added a commit that referenced this issue Feb 16, 2022
* fix(#443): add error if no schema files generated

* chore: update tests

* chore: update circle config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: schema Related to the `druxt-schema` module module: site Related to the `druxt-site` module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant