Giter VIP home page Giter VIP logo

query-anecdotes's Introduction

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

query-anecdotes's People

Contributors

mluukkai avatar qaidvoid avatar baciucristian avatar bambery avatar

Stargazers

arnavsharma avatar Pulkit avatar

Watchers

 avatar Jani Rapo avatar Tuomo Torppa avatar

query-anecdotes's Issues

Missing server.js

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.

cannot start server after cloning repo

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.

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.