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

os-locale new update is not compatible for old loopback version #144

Open
louiepiol opened this issue Jun 13, 2019 · 4 comments
Open

os-locale new update is not compatible for old loopback version #144

louiepiol opened this issue Jun 13, 2019 · 4 comments
Assignees

Comments

@louiepiol
Copy link

Upon running loopback the system gives an error:

loopback version: 3.0.0

async function getLocales() {
      ^^^^^^^^

SyntaxError: Unexpected token function
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/user/node_modules/strong-globalize/lib/globalize.js:16:18)
@raymondfeng
Copy link
Member

Which Node version do you have?

I unpublished the versions.

@louiepiol
Copy link
Author

Node version: v6.115
NPM version: 3.10.10

@JDev02
Copy link

JDev02 commented Sep 10, 2019

tl;dr: update your node version or use explicit loopback reference(without "^" for not to use latest os-locale package)

looks as if loopback use os-locale, and latest looback minor version use latest os-locale, and this package have a breaking change and now use node >= 8.

ps: async, await, template string, etc is enable only in node >= 7.6

@BorisChumichev
Copy link

BorisChumichev commented Oct 3, 2019

Faced the same issue. Having explicit loopback dependencies did not help:

    "loopback": "3.0.0",
    "loopback-boot": "2.6.5",
    "loopback-common-errors": "0.0.4",
    "loopback-component-explorer": "2.4.0",
    "loopback-component-passport": "3.4.1",
    "loopback-component-storage-gridfs": "1.1.1",
    "loopback-connector-mongodb": "3.3.1",
    "loopback-ds-timestamp-mixin": "3.4.1",

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

4 participants