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

Cannot find module '@directus/shared/exceptions' #9231

Closed
3 tasks done
NirvanKS opened this issue Oct 29, 2021 · 1 comment
Closed
3 tasks done

Cannot find module '@directus/shared/exceptions' #9231

NirvanKS opened this issue Oct 29, 2021 · 1 comment

Comments

@NirvanKS
Copy link

Preflight Checklist

Describe the Bug

I am trying to upgrade my Directus from rc68 to rc99 because I would like to try the new snapshot/migrate feature.

After updating, I can no longer run DIrectus related commands due to a module missing error.

To Reproduce

  1. Existing Directus project rc68
  2. Delete node modules folder
  3. Delete package-lock.json
  4. update directus in package-json with "^9.0.0-rc.99"
  5. run npm install
  6. run npx directus database migrate:latest or even something like npx directus start

Errors Shown

Cannot find module '@directus/shared/exceptions'

Require stack:

  • project/node_modules/directus/dist/exceptions/forbidden.js
  • projectnode_modules/directus/dist/exceptions/index.js
  • project/node_modules/directus/dist/controllers/activity.js
  • project/node_modules/directus/dist/app.js
  • project/node_modules/directus/dist/server.js
  • project/node_modules/directus/dist/cli/index.js
  • project/node_modules/directus/dist/cli/run.js
  • project/node_modules/directus/cli.js

What version of Directus are you using?

v9.0.0rc99

What version of Node.js are you using?

v12.13.0

What database are you using?

Postgres 13

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying Directus?

running locally

@nickrum
Copy link
Member

nickrum commented Oct 29, 2021

Make sure you are using a Node version that is above the minimum required version. Directus currently requires Node v12.20 to run.

@nickrum nickrum closed this as completed Oct 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants