Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

SyntaxError: Cannot use import statement outside a module #24

Open
RobbyGit opened this issue Jun 14, 2022 · 2 comments
Open

SyntaxError: Cannot use import statement outside a module #24

RobbyGit opened this issue Jun 14, 2022 · 2 comments

Comments

@RobbyGit
Copy link

Hi there

I would love to use this with out Dahua camera but I have to admit not understanding how to run it.

I did the following:

  1. cloned the directory
  2. Then npm install
  3. Then npm run build

Now I run node index.js and I get the following error

SyntaxError: Cannot use import statement outside a module

Am i just to much of a newbe to run this ?

Thanks

Robby

@Just625
Copy link

Just625 commented Nov 16, 2022

I think you are supposed to serve the dist folder after the "npm run build" command instead of running "node index.js"

@arnotixe
Copy link

try

npm i -g serve
npm run build
serve dist

then go http://localhost:3000

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants