-
Notifications
You must be signed in to change notification settings - Fork 1
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
i18n throwing error on async/await syntax #3
Comments
Hi @rabeesh, could you provide a bit of context? Are you using assetgraph-i18n with assetgraph-builder? Which version(s)? |
Found the issue could you update, https://github.com/assetgraph/assetgraph-i18n/blob/master/package.json#L27 Please update into |
Ah, thanks. I did that and released 0.4.0. However, I think assetgraph should have been a peer dep instead so that it'll always use the one that assetgraph-builder comes with. I made that change as well and released 0.5.0. It would be a nice help if you could try out both :) |
With these change,
https://github.com/assetgraph/assetgraph-i18n/blob/master/bin/checkLanguageKeys#L45 |
Hmm, looks like there's a bit of work associated with adapting to assetgraph 4. Will take a look soon. |
Could you try 0.6.0? |
now facing an issue while installing package. npm ERR! path /project/node_modules/assetgraph-i18n/applyBabelJob.js npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall chmod npm ERR! enoent ENOENT: no such file or directory, chmod '/webshopbackend/node_modules/assetgraph-i18n/applyBabelJob.js' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent |
@Mahesh434, ah, stupid typo of mine in package.json. Try 0.6.1 :) |
Tried but having this issue :( /project/node_modules/assetgraph-i18n/bin/checkLanguageKeys.js:167 .prettyPrintAssets({ type: ['I18n'], isDirty: true }) ^ TypeError: (intermediate value).logEvents(...).loadAssets(...).bundleWebpack(...).populate(...).bundleSystemJs(...).bundleRequireJs(...).populate(...).queue(...).if(...).prettyPrintAssets is not a function at Object. (/project/node_modules/assetgraph-i18n/bin/checkLanguageKeys.js:167:4) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) at Function.Module.runMain (module.js:684:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3 make: *** [checklanguagekeys] Error 1 |
Ah, there aren't any tests of the |
Should be fixed in 0.6.2 :) |
Still make
will throw error If remove default parameter, then no error showing up
I have checked in esprima , look like they are supporting this feature. |
Looks like that error is coming out of estraverse or something. I'm a little unsure about how to reproduce it. Could you tell me a bit about the setup? Are you using the webpack, system.js, or require.js integration? What's the exact command that terminates with that error? Could you share the complete output, and is there a stack trace, etc.? |
we are using require.js integraion |
I think the problem is with the lib: |
Hmm, weird, escodegen only seems to use esprima in a binary that we don't use. It must be some secondary effect of having the old esprima available in assetgraph-i18n or assetgraph. I've tried adding a dependency on esprima ^4.0.0 in assetgraph-i18n in the hope that it helps. Could you try assetgraph-i18n 0.7.0? |
Still getting following errors with "assetgraph-i18n": "0.7.1",
I think some of issues will resolved, when moving into upcoming esprima version v5.0 jquery/esprima#1743. |
Hmm, it’s probably the estraverse fork that doesn’t support these nodes. I’m busy this week but will try to take a look soon. |
I don't really have enough info to make a test case, but I think this is due to estools/estraverse#95 not being merged. I added a workaround (inspired by estools/estraverse#97 (comment)) and published 0.7.2. Could you see if that helped? |
Should avoid the error described in #3 (comment) until estools/estraverse#95 gets merged.
Still getting the error, the Please see the error stack
the |
Found workaround by install into packages by May be the order of |
Hmm, weird, does it work if you remove the direct estraverse dependency in your app, then Which version of assetgraph-builder are you using? |
@papandreou Yeah, already tried |
It seems like the latest published version of We should be able to find out if that's causing it if you try applying this patch in your project:
... then try building again. |
i18n throwing error on async/await syntax
The code throws error at
The text was updated successfully, but these errors were encountered: