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

build fails with SyntaxError: Unexpected token 'export' #29

Open
nandoflorestan opened this issue Jul 13, 2021 · 2 comments
Open

build fails with SyntaxError: Unexpected token 'export' #29

nandoflorestan opened this issue Jul 13, 2021 · 2 comments

Comments

@nandoflorestan
Copy link

nandoflorestan commented Jul 13, 2021

For a project created with parcel:

SyntaxError: Unexpected token 'export'
    at new Script (node:vm:100:7)
    at NativeCompileCache._moduleCompile (/home/nando/py/jobs/fairsplit/fair/fair/klient/node_modules/v8-compile-cache/v8-compile-cache.js:240:18)
    at Module._compile (/home/nando/py/jobs/fairsplit/fair/fair/klient/node_modules/v8-compile-cache/v8-compile-cache.js:184:36)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
    at Module.load (node:internal/modules/cjs/loader:989:32)
    at Function.Module._load (node:internal/modules/cjs/loader:829:14)
    at Module.require (node:internal/modules/cjs/loader:1013:19)
    at require (/home/nando/py/jobs/fairsplit/fair/fair/klient/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/home/nando/py/jobs/fairsplit/fair/fair/klient/node_modules/imba/index.js:3:18)
    at Module._compile (/home/nando/py/jobs/fairsplit/fair/fair/klient/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)

@nandoflorestan
Copy link
Author

For a project created with webpack:

ERROR in multi ./source/index.imba ./source/index.css ./source/index.html
Module not found: Error: Can't resolve 'imba/loader' in '/home/nando/py/jobs/fairsplit/fair/fair/klient'
 @ multi ./source/index.imba ./source/index.css ./source/index.html main[0]

ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./source/index.imba ./source/index.css ./source/index.html
Module not found: Error: Can't resolve 'imba/loader' in '/home/nando/py/jobs/fairsplit/fair/fair/klient'
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./source/index.imba ./source/index.css ./source/index.html main[1]
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./source/index.html] 431 bytes {0} [built]
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!source/index.css:
    Entrypoint mini-css-extract-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./source/components/app.css] 1.1 KiB {mini-css-extract-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./source/index.css] 529 bytes {mini-css-extract-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {mini-css-extract-plugin} [built]
ℹ 「wdm」: Failed to compile.
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: ENOENT: no such file or directory, stat '/home/nando/.steampath'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/home/nando/.steampath'
}

@nandoflorestan
Copy link
Author

It is likely that this project is deprecated... I see imba offers this functionality itself:
https://imba.io/language/getting-started

If that's the case, then this should be explained prominently in the README

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

1 participant