Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeWebapp Windows #109

Closed
6R1M4C3 opened this issue Aug 26, 2023 · 5 comments · Fixed by #125
Closed

NodeWebapp Windows #109

6R1M4C3 opened this issue Aug 26, 2023 · 5 comments · Fixed by #125

Comments

@6R1M4C3
Copy link

6R1M4C3 commented Aug 26, 2023

The install instructions for windows based on the files provided in the archive do not work it throws many errors.

@giga-a
Copy link
Member

giga-a commented Aug 26, 2023

What are the errors?

@6R1M4C3
Copy link
Author

6R1M4C3 commented Aug 27, 2023

What are the errors?

I do apologise for not attaching these earlier,

PS D:\github\social-analyzer-main> npm start

> social-analyzer@2.0.32 start
> node app.js --gui

file:///D:/github/social-analyzer-main/modules/slow-scan.js:12
  const package_path = path.join(path.dirname(require.resolve('geckodriver')), '..')
                                              ^

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 'D:\github\social-analyzer-main\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at file:///D:/github/social-analyzer-main/modules/slow-scan.js:12:47
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

Node.js v18.17.1

image

@AcidChristLab
Copy link

Me too :(

@Peer-To-Peer
Copy link

Me too

@willkrakow
Copy link
Contributor

Looks like 'require.resolve(...)' needs to be replaced with 'import(...)' since the target is an ESM module.

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

Successfully merging a pull request may close this issue.

5 participants