Currently running into an issue with an unhelpful help message: Collection must have a field name that is a valid entry identifier
While investigating I found that ncms only ships with the minified source code. Also, the source mapping comment is missing from the js source so the source map provided will not be loaded by default.
It be great to be able to use the actual source code while I am debugging the cms with our apps.
@Benaiah can you update this with the latest on how we (might) approach this?
cc/ @biilmann
@erquhart We should be able to accomplish this by adding a .npmignore that copies .gitignore minus the src directory
The sourcemaps are now included with the NPM package, and include the linked source code (excluding external modules). Is there any other ways that you would suggest expanding on this?
Ah, nope, we aren't shipping source 🤦♂️. @BerkeleyTrue we'd definitely take a PR to finish enabling sourcemaps.
@erquhart If we're going to start shipping the source code, then we don't need to have the source code bundled as part of the cms.js.map, right?
@tech4him1 right, we should not need that, only the map itself.
Google brought me here. Got the same message: Collection must have a field name that is a valid entry identifier. Any suggestions as to what causes this?
Resolved it by adding a field named title to the collection. I presume that Netlify needs this field to generate a filename slug.
Most helpful comment
Resolved it by adding a field named
titleto the collection. I presume that Netlify needs this field to generate a filename slug.