YIZHUANG / react-multi-carousel

A lightweight production-ready Carousel that rocks supports multiple items and server-side rendering with no dependency. Bundle size 2kb.
MIT License
1.28k stars 289 forks source link

npm run dev does not work #363

Closed miguelgargallo closed 1 year ago

miguelgargallo commented 2 years ago

$ npm run dev

react-multi-carousel@2.8.2 dev cd dev && npm run dev

dev npm run clean && npm run build:server && nodemon dist/server/index.js

clean rimraf dist && rimraf .next

build:server tsc --project tsconfig.server.json

routes/index.ts:1:16 - error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try npm i @types/node.

1 const routes = require("next-routes")();


server/index.ts:2:18 - error TS2307: Cannot find module 'next'.

2 import next from "next";

server/index.ts:3:18 - error TS2307: Cannot find module 'path'.

3 import path from "path";


server/index.ts:7:23 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i @types/node`.

7 const port = parseInt(process.env.PORT, 10) || 3000;

server/index.ts:8:13 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try npm i @types/node.

8 const dev = process.env.NODE_ENV !== "production";



Found 5 errors.
miguelgargallo commented 1 year ago

Thanks for you time, and Merry Christmas 🎄