Git Product home page Git Product logo

Comments (11)

lots0logs avatar lots0logs commented on September 16, 2024

Hi, did you run yarn build?

from create-divi-extension.

j1exus avatar j1exus commented on September 16, 2024

I run npm start build, clear the cache

from create-divi-extension.

lots0logs avatar lots0logs commented on September 16, 2024

If you are using npm then you should run npm run build when you want to compile for production use (meaning using without the start command running in the background)

from create-divi-extension.

j1exus avatar j1exus commented on September 16, 2024

Sorry for confuse, I run npm run build
I see that styles\style.min.css compiling. All css is there. But I do not see this file attached in source code of page. Should I include it manually using wp_register_style | wp_enqueue_style ?

Cache is cleared

from create-divi-extension.

xxtesaxx avatar xxtesaxx commented on September 16, 2024

If you correctly build your extension, I believe the "DiviExtension" class from your includes directory will take care of loading the CSS for your modules. For me that works as expected but I build my modules using yarn zip before publishing them on my test site.

from create-divi-extension.

j1exus avatar j1exus commented on September 16, 2024

I will try with Yarn.
Using npm run zip I faced to problems (I'm using Windows 10):

  1. Some module crashed. As it turned out it requires to run console from Administrator
  2. npm run zip do not throws any error, but "hangs". So I had to run npm run build and zip files manually

from create-divi-extension.

j1exus avatar j1exus commented on September 16, 2024

Hello,
I've updated node and npm, install yarn.

But it seems that I still have problems. Maybe they are related to each other and to the main topic

  1. During npx create-divi-extension hello-world I'm getting the following message:

err1

  1. During Yarn start I do not see any style changes in the console. I tried to do Yarn zip and get the following:

err2

I found that it could be related with system permissions so I run console from Administrator

  1. And it "hangs" during command execution on

err3

What should I do and where I should try to find an error.

Thanks!

from create-divi-extension.

lots0logs avatar lots0logs commented on September 16, 2024
  1. That message can be safely disregarded. It doesn't affect anything.
  2. Same issue as #22
  3. Do you have gettext installed? Its required to run yarn zip.

from create-divi-extension.

xxtesaxx avatar xxtesaxx commented on September 16, 2024

I have the same issue with yarn zip on windows. Running it as administrator and gettext is installed:

image

After some 20 minutes I cancelled because the po2mo task hangs. Afterwards I run xgettext --version so apparently I'm using 0.19.8.1

from create-divi-extension.

j1exus avatar j1exus commented on September 16, 2024

gettext is installed..

from create-divi-extension.

lots0logs avatar lots0logs commented on September 16, 2024

I think the problem is that one of the packages we depend on doesn't properly support Windows environments. We'll try to swap it out for something else in the next release of create-divi-extension.

from create-divi-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.