-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from ijsto:SA/Docs---init-troubleshooting
Merge pull request #34 from ijsto/changeset-release/main
- Loading branch information
Showing
4 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"keystone-6-oauth": patch | ||
--- | ||
|
||
Initialize Troubleshooting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Known Errors | ||
|
||
Below is a list of potential errors or issues you may run into (that we have discovered). | ||
|
||
## 🚨 There was an error loading your Keystone config | ||
|
||
### Issue | ||
|
||
After installing, re-installing, cloning or starting your Keystone App, you are faced with the below error: | ||
|
||
```bash | ||
Error: Cannot find module '/home/optimbro/dev/projects/dotSentry/backend/.keystone/admin/.next/server/pages/api/__keystone_api_build' | ||
``` | ||
|
||
### Solution | ||
|
||
#### **Option A** | ||
|
||
- delete the `.keystone` and `node_modules` folders | ||
- re-install Keystone `yarn install` | ||
- start Keystone `yarn dev` | ||
|
||
Additionally you can visit http://localhost:3000/admin/api/auth (`http://BACKEND_URL/admin/api/auth`) and log in. | ||
This should explicitly generate the missing `api` folder. | ||
|
||
#### **Option B** | ||
|
||
- delete the `.keystone` and `node_modules` folders | ||
- clean yarn cache `yarn cache clean` | ||
- re-install Keystone `yarn install` | ||
- start Keystone `yarn dev` | ||
|
||
Additionally you can visit http://localhost:3000/admin/api/auth (`http://BACKEND_URL/admin/api/auth`) and log in. | ||
This should explicitly generate the missing `api` folder. | ||
|
||
#### **Option C (last resort)** | ||
|
||
- delete the `.keystone` and `node_modules` folders | ||
- clean yarn cache `yarn cache clean` | ||
- restart your computer | ||
- re-install Keystone `yarn install` | ||
- start Keystone `yarn dev` | ||
|
||
Additionally you can visit http://localhost:3000/admin/api/auth (`http://BACKEND_URL/admin/api/auth`) and log in. | ||
This should explicitly generate the missing `api` folder. | ||
|
||
### Cause | ||
|
||
It is unclear at the moment why this error occurs. | ||
If you come across the root cause of this, please [create a PR](https://github.com/ijsto/keystone-plugins/pulls), or [submit and issue](https://github.com/ijsto/keystone-plugins/issues/new) with your findings, we will add it here so others can benefit from it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Limitations | ||
|
||
If you run into any limitations, please [submit an issue](https://github.com/ijsto/keystone-plugins/issues/new) and we will add it here. | ||
|
||
[Pull Requests](https://github.com/ijsto/keystone-plugins/pulls) are also very welcome. 🙌🏼 |
128e1ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: