TypeError: prevDeps is undefinded, when editing content
See original GitHub issueDescription
After adding the TinaCMS in my existing Gatsby site, I’m receiving a error message when editing my content both in TinaCMS sidebar and directly in my markdown files. When I remove TinaCMS dependencies the error does not occurs anymore.
The error says the following:
TypeError: prevDeps is undefinded
Steps to reproduce
- install tina-cms to my existing gatsby project
- setup it in
gatsby-config.js - run a development server with the
gatsby developcommand - access
http://localhot:8000/in my browser. - edit a content in the tina sidebar
Expected result
Edit the content without errors.
Actual result
After editing the content a error message is shown.
Environment
Tinacms Package Versions
gatsby-plugin-tinacms@0.1.19
│ ├── @tinacms/core@0.6.0
│ └─┬ tinacms@0.11.2
│ ├─┬ @tinacms/fields@0.2.1
│ ├─┬ @tinacms/forms@0.1.0
│ ├── @tinacms/icons@0.3.9
│ ├─┬ @tinacms/react-core@0.2.3
│ ├── @tinacms/styles@0.1.0
├─┬ gatsby-tinacms-git@0.2.16
│ ├─┬ @tinacms/api-git@0.5.2
│ ├── @tinacms/git-client@0.4.1
├─┬ gatsby-tinacms-remark@0.6.3│ ├─┬ @tinacms/form-builder@0.2.11
Tools
| Tool | Version |
|---|---|
| browser | Firefox Developer Edition v72.0b3 |
| os | Manjaro 18.1.4 Juhraya |
| yarn | v1.17.3 |
| node | v10.16.0 |
| npm | v6.10.2 |
Aditional Information
URL to the project repository
https://github.com/cleitonper/me
The TinaCMS is used in the home page (/src/pages/index.tsx)
The content that I’m trying to edit is inside this file: src/content/presentation/presentation.md
Note: use the tina-cms branch
Error Screenshot
| Error Message |
|---|
![]() |
TypeError: prevDeps is undefined |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top Results From Across the Web
TypeError: prevDeps is undefined #66 - GitHub
Hello again, I'm getting this strange error with the following code: const { filtersURL, filters: defaultFilters } = props; const [filters, ...
Read more >withStyles : TypeError: prevDeps is undefined - Stack Overflow
I think that happens because styles is a function and you can't pass a function to withStyle . When you create another file...
Read more >Use ES6 Arrow Functions to Resolve "TypeError - Pluralsight
This error informs you that this is undefined. Specifically, onClick={this.onFishClicked} fails for this reason. The reason the code is unable ...
Read more >TypeError: e is undefined, when trying to resize() editor
var content = 'stuff'; editor = CKEDITOR.appendTo( 'editor', config, content );. editor.resize( 451, 400);. Chrome just tells me: "Uncaught ...
Read more >ERROR TypeError: undefined is not an object (evaluating ...
The solution… Ever encountered this error → ERROR TypeError: undefined is not an object (evaluating '_this. props. navigation.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This issue is fixed at latest version.
Thanks @ncphillips and also the whole TinaCMS team.
used versions
Hey @cleitonper, I just made a release. Could you try again with
latest? I think it may have fixed the above issue as well. The before, the title would have been removed from the frontmatter when you cleared the field, but that has been addressed in c899ee5