This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
Hello! I was troubleshooting 6.24 on fullstack discord server and I was shown that this version is missing the server.js file. The type and server script field also needed to be updated in package.json.
The text of part 6d, exercises 6.20-6.22 says the following:
The project has a ready-installed JSON Server, the operation of which has been slightly modified. Start the server with npm run server.
Cloning the repo, deleting the .git, running npm install
, and then attempting to run npm run server
causes the following error:
[email protected] server
> node server.js
file:///[...]/part6/query-anecdotes/server.js:1
const jsonServer = require('json-server')
^
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '[...]/part6/query-anecdotes/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///[...]/part6/query-anecdotes/server.js:1:20
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Modifying the server.js
file to use es module syntax and installing json-server
allows the app to run. As I have not completed the exercises yet, I am unsure if this is a satisfactory solution.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.