Comments (1)
Seems like the issue might have been introduced in be22c5f, which loads netlify-cms from unpkg instead of the included cms.js
file:
--- a/src/cms.html
+++ b/site/static/admin/index.html
@@ -9,6 +9,6 @@
<script src="https://identity-js.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
- <script src="<%= htmlWebpackPlugin.files.chunks.cms.entry %>"></script>
+ <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</body>
</html>
I was able to get a fix working on my site -- here are the changes pulled out into a commit cgc@97a313e. They deal with breaking changes in two packages during the version updates in #674:
date-fns
- format strings changed in 2.0, the release notes have a table of changes herehtml-webpack-plugin
-htmlWebpackPlugin.files
has a new format that disappointingly discards bundle names between 3.x and 4.x (documented in project readme, search for "htmlWebpackPlugin.files
"). The change is a bit annoying because it means you have to assume the order of bundles. Since object property order is based on insertion order (in ES6), as long as that order isn't modified by webpack, the index in my commit is appropriate for the order of bundles inwebpack.common.js
(empirically, it also works). An issue to reverse this change (so, to once again access bundles by name) has been opened but is stale: jantimon/html-webpack-plugin#1369.
from one-click-hugo-cms.
Related Issues (20)
- Serve site from subdirectory HOT 1
- Dependency Dashboard
- Image preview on Value page not working HOT 3
- Bug: 1-click site generation fails HOT 2
- switch from master to main HOT 1
- Git Gateway Error accessing Admin panel on a brand-new one-click deployment HOT 5
- Build and start issues (maybe sass related) HOT 2
- Found no layout file for “HTML” for kind “taxonomy”: You should create a template file which matches Hugo Layouts Lookup Rules for this combination HOT 1
- Adds maintenance tooling HOT 1
- New stewardship and direction HOT 2
- [Production mode] Tachyons media queries are not working HOT 3
- Styling appears differently when running locally vs deployed to netlify HOT 4
- Deployment
- No rendered page after deploying on Netlify HOT 2
- Supplied tech.md page not editiable through the Netlify CMS interface
- Delete master branch and merge #479 into main HOT 1
- Teste site
- Response for config.yml was not yaml HOT 1
- npm install fails with npm ERR! notarget No matching version found for decap-cms-widget-date@^2.5.7. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one-click-hugo-cms.