GithubHelp home page GithubHelp logo

Comments (4)

 avatar commented on June 23, 2024 1

@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.

suevalov avatar suevalov commented on June 23, 2024

@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.

 avatar commented on June 23, 2024

@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.

suevalov avatar suevalov commented on June 23, 2024

@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:

from create-contentful-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.