geckosio / snapshot-interpolation

A Snapshot Interpolation library for Real-Time Multiplayer Games.
BSD 3-Clause "New" or "Revised" License
277 stars 25 forks source link

npm start throws error #18

Open PushoN opened 2 years ago

PushoN commented 2 years ago

There is stack trace that i got after i run command in terminal

`[4:12:21 PM] Starting compilation in watch mode...

[nodemon] 2.0.19 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting node example/server/index.js node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module '../../lib/index' Require stack:

yandeu commented 2 years ago

I have updated the example to ESM. Now it should work.