Giter Site home page Giter Site logo

Comments (8)

just-boris avatar just-boris commented on June 27, 2024

Yes, you will need to install preact on your own.
Unfortunately, the react and react-dom dependencies are hard-coded as a part of create-react-app command, so it is not possible to modify it via --scripts-version option. I will update the readme with that information.

from create-preact-app.

just-boris avatar just-boris commented on June 27, 2024

Sorry, tested this again, everything works fine for me. I have got preact installed without additional steps.

How did you create the app? In the Readme, we have the following command

create-react-app my-app --scripts-version @just-boris/preact-scripts
cd my-app/
npm start

Did it work for you?

from create-preact-app.

unicodeveloper avatar unicodeveloper commented on June 27, 2024

And you didn't get the failed to compile error?

from create-preact-app.

just-boris avatar just-boris commented on June 27, 2024

I have got spinning React logo, as it was expected for demo page.

from create-preact-app.

sconnelley avatar sconnelley commented on June 27, 2024

I can verify the behavior @unicodeveloper experienced. Works fine after manually install preact and preact-compact. I am using create-react-app at version 1.3.1 if that's helpful.

from create-preact-app.

unicodeveloper avatar unicodeveloper commented on June 27, 2024

from create-preact-app.

unicodeveloper avatar unicodeveloper commented on June 27, 2024

from create-preact-app.

just-boris avatar just-boris commented on June 27, 2024

Confirm the problem. I could not reproduce it before because I had and older version of create-react-command.

As the only possible solution, I recommend you to run npm install or yarn, depending what you are using, before starting the server. I will add this as a part of setup steps in README.md.

from create-preact-app.

Related Issues (11)

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.