Comments (8)
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.
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.
And you didn't get the failed to compile error?
from create-preact-app.
I have got spinning React logo, as it was expected for demo page.
from create-preact-app.
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.
from create-preact-app.
from create-preact-app.
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)
- Preact Compat HOT 1
- Ejecting from default HOT 1
- Error: Cannot find module node_modules/package.json HOT 1
- Add preact-compat name mapping into Jest config
- upstream updates lagging HOT 1
- Note an issue/bug: What were byte/performance gains using Preact over React? HOT 1
- I got an error: 'h' must be in scope when using JSX HOT 2
- Wrong links on npmjs HOT 1
- Is project dead? HOT 2
- CSS class as object 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-preact-app.