Comments (4)
@suevalov alright, thanks for clarification. :) Was not clear from the readme to me.
In chrome it works fine, like magic. But in firefox it seams impossible to enable CORS. Tried every plugin i found from addons.mozilla... Then i have to use chrome for extension development.
Thank you so much. :)
from create-contentful-extension.
@danbru-WittGruppe Thanks for filing the issue.
Where do you get a blank page? Extension should be rendered inside of Contentful and only then init
function is fired. Could you provide more details?
from create-contentful-extension.
@suevalov ah maybe i have a different understanding.
After npm run login
i run npm run start
. Then i go to http://localhost:1234
and there is the blank page. So i expected that there i will see for example an rendered TextInput field. Nothing more.
How can i use this with contenful? I need to deploy it, right? That means i can't develop in https://localhost:1234
and have to deploy on every change i make?
from create-contentful-extension.
@danbru-WittGruppe
http://localhost:1234
is supposed to be blank. The extension renders UI only if used inside of Contentful.
You don't need to deploy it in order to do so. npm run start
serves extension from your localhost and only need to go to Contentful and assign your extension to any field in your content type (if it's Field extension) or to a sidebar (if it's Sidebar extension).
Then you go to a content page where extension is supposed to be shown and see it rendered in development mode. Start updating source files and see the hot-reload of the component inside of Contentful on every safe.
npm run deploy
is supposed to be used when you finished development and want to publish extension in development mode.
More information:
- https://www.contentful.com/developers/docs/extensibility/ui-extensions/examples/ (Assigning UI Extensions to a Field) section
- https://www.contentful.com/developers/docs/extensibility/custom-sidebar/
from create-contentful-extension.
Related Issues (20)
- Upgrade dependency htmlnano to v1.0.0 to fix transitive security vulnerability HOT 1
- Building extensions does not support tsconfig `extends` property HOT 1
- Enable autoprefixer HOT 1
- zlib usage HOT 1
- Cannot find module on start HOT 2
- Added ability to pass installation parameters
- Npm audit got high vulnerabilities. HOT 2
- On Hot Reload, `getValue()` returns initial entry values instead of current values HOT 2
- Npm install high vulnerabilities.
- @contentful\contentful-extension-scripts Missing from node_modules on Windows 10 HOT 5
- Neither Javascript or Typescript sidebar project are working HOT 4
- Choose Between Class or Functional Component HOT 1
- React Dev Tools HOT 1
- Issue with UI extension creation HOT 1
- Feature: support code reuse for multiple-extension repos HOT 7
- Support deployment to subfolders
- Unhandled Promise Rejection on run build
- Detect compare mode for contentful app HOT 1
- Jest test configuration generated is ignored by scripts/test.js
- Version Mismatch of with @contentful/field-editor-reference causing TypeScript errors HOT 1
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 create-contentful-extension.