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

Module error #59

Open
mateuszbilicz opened this issue Jan 1, 2020 · 7 comments
Open

Module error #59

mateuszbilicz opened this issue Jan 1, 2020 · 7 comments

Comments

@mateuszbilicz
Copy link

node app
D:\DESKTOP\proj31\node_modules\neuro.js\index.js:1
export const classifiers = require('./dist/core');
^^^^^^
SyntaxError: Unexpected token 'export'
�[90m at Module._compile (internal/modules/cjs/loader.js:881:18)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:798:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:711:12)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:838:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:74:18)�[39m
at Object. (D:\DESKTOP\proj31\app.js:1:13)
�[90m at Module._compile (internal/modules/cjs/loader.js:945:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:798:32)�[39m

D:\DESKTOP\proj31>npm --version
6.11.3
D:\DESKTOP\proj31>node --version
v12.11.1

@CityArchitect
Copy link

Same problem as above; has this project been abandoned?

@Maxwell-Fisher
Copy link

I am also getting this error, has anyone been able to find a fix for it?

@Maxwell-Fisher
Copy link

`maxwell@maxwell-server-main:~/Desktop/test-ai$ node test.js
/home/maxwell/Desktop/test-ai/node_modules/neuro.js/index.js:1
(function (exports, require, module, __filename, __dirname) { export const classifiers = require('./dist/core');
^^^^^^

SyntaxError: Unexpected token export
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)`

@georgeiliadis91
Copy link

This error persists, i tried to get into the source code and started changing imports and stuff. But seems like a wormhole of an issue.

Tried on windows and wsl2 ubuntu 20.4.

@raravel
Copy link

raravel commented May 4, 2021

I temporarily solved it.

https://github.com/raravel/neuro-umd

@wanderdevof
Copy link

I temporarily solved it.

https://github.com/raravel/neuro-umd

Can you tell me what the solution was?

@raravel
Copy link

raravel commented Aug 19, 2021

I temporarily solved it.
https://github.com/raravel/neuro-umd

Can you tell me what the solution was?

I was just replace code import to require

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

No branches or pull requests

6 participants