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

isInUseContext #1

Open
jgladen opened this issue Oct 11, 2022 · 3 comments
Open

isInUseContext #1

jgladen opened this issue Oct 11, 2022 · 3 comments

Comments

@jgladen
Copy link

jgladen commented Oct 11, 2022

yarn build.client reports:

error during build:
Error: 'isInUseContext' is not exported by node_modules/@builder.io/qwik/core.min.mjs, imported by src/i18n.js
@AlanLes
Copy link

AlanLes commented Oct 13, 2022

Hello @jgladen, I've got a different one. I've tried to reproduce your error and I've stuck on the same step yarn build.client but with different output:

yarn i18n-extract
yarn run v1.22.19
$ vite build
vite v3.1.1 building for production...
✓ 51 modules transformed.
'useLang' is not exported by node_modules/@builder.io/qwik/core.min.mjs, imported by src/i18n.js
file: /usr/justfun/qwik-i18n/src/i18n.js:4:21
2: import "@angular/localize/init";
3: import { loadTranslations } from "@angular/localize";
4: import { useEnvData, useLang, withLang, useOnDocument } from "@builder.io/qwik";
                        ^
5: import EN from "./locale/message.en.json";
6: import SK from "./locale/message.sk.json";
error during build:
Error: 'useLang' is not exported by node_modules/@builder.io/qwik/core.min.mjs, imported by src/i18n.js
    at error (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
    at Module.error (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:12429:16)
    at Module.traceVariable (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:12788:29)
    at ModuleScope.findVariable (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:11440:39)
    at TrackingScope.findVariable (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:6372:38)
    at BlockScope.findVariable (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:6372:38)
    at FunctionScope.findVariable (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:6372:38)
    at ChildScope.findVariable (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:6372:38)
    at Identifier.bind (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:7439:40)
    at CallExpression.bind (file:///usr/justfun/qwik-i18n/node_modules/rollup/dist/es/shared/rollup.js:5269:23)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ node_modules/.bin/localize-extract -s "dist/build/*.js" -f json -o src/locale/message.en.json
✨  Done in 1.04s.

using node v16.14.2

@jgladen
Copy link
Author

jgladen commented Oct 13, 2022

I to am getting the same error now. since fixes for qwik-city . Maybe it's a development version of @builder.io/qwik ?

@wmertens
Copy link
Contributor

Should be ok now.

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

3 participants