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

Can't build with chakra-ui/utils latest #267

Closed
KannarFr opened this issue Oct 2, 2024 · 3 comments
Closed

Can't build with chakra-ui/utils latest #267

KannarFr opened this issue Oct 2, 2024 · 3 comments

Comments

@KannarFr
Copy link

KannarFr commented Oct 2, 2024

Hi,

I had to downgrade @chakra-ui/utils to v2.0.8 to make a project using this library to build.

error during build:                                                                                                                                                                                                                                                                                                                                         
node_modules/@choc-ui/chakra-autocomplete/dist/index.es.js (5:86): "getNextItem" is not exported by "node_modules/@chakra-ui/utils/dist/esm/index.mjs", imported by "node_modules/@choc-ui/chakra-autocomplete/dist/index.es.js".
file: /home/kannar/git/myle/web/node_modules/@choc-ui/chakra-autocomplete/dist/index.es.js:5:86
                                                                                       
3: import { createContext as lo } from "@chakra-ui/react-utils";
4: import { useDisclosure as co, useControllableState as uo, useUpdateEffect as fo, forwardRef as Sr, Popover as po, cha...
5: import { pick as wo, isDefined as cn, isEmpty as Rt, runIfFn as Z, isUndefined as Vr, getNextItem as Ro, getPrevItem ...
                                                                                         ^
6: import Vt from "@emotion/styled";                          
7: import { ThemeContext as Po } from "@emotion/react";       
                                                                                       
    at getRollupError (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/parseAst.js:395:41)
    at error (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/parseAst.js:391:42)
    at Module.error (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:15535:16)
    at Module.traceVariable (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:15984:29)
    at ModuleScope.findVariable (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:13770:39)
    at FunctionScope.findVariable (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:5252:38)
    at FunctionBodyScope.findVariable (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:5252:38)
    at Identifier.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:5035:40)
    at CallExpression.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:2855:23)
    at CallExpression.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:11235:15)
    at VariableDeclarator.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:2855:23)
    at VariableDeclaration.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:2851:28)
    at BlockStatement.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:2851:28)
    at FunctionDeclaration.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:2855:23)
    at Program.bind (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:2851:28)
    at Module.bindReferences (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:15514:18)
    at Graph.sortModules (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:21019:20)             
    at Graph.build (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:20922:14)
    at async file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:21607:13
    at async catchUnfinishedHookActions (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:21076:16)
    at async rollupInternal (file:///home/kannar/git/myle/web/node_modules/rollup/dist/es/shared/node-entry.js:21602:5)
    at async build (file:///home/kannar/git/myle/web/node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:65386:14)
    at async CAC.<anonymous> (file:///home/kannar/git/myle/web/node_modules/vite/dist/node/cli.js:828:5)
@Kysluss
Copy link
Collaborator

Kysluss commented Oct 6, 2024

Hi @KannarFr

On vacation this week, but should be able to take a look when I get back. Is this a fresh install of react with chakra and autocomplete or did you have to install anything specific?

Reason I ask, I just released a new version the other week that had all the dependencies upgraded and I didn't get this error when I ran through some tests.

@KannarFr
Copy link
Author

KannarFr commented Oct 7, 2024

Hi,

I tried to bump to bump because I had other issues with dependencies. After all, we should use @chakra-ui/react and not other sub-packages like @chakra-ui/system, etc.

But it didn't fixes and downgrade @chakra-ui/utils fixed the issue.

@Kysluss
Copy link
Collaborator

Kysluss commented Oct 10, 2024

Thank you. This should be resolved in v5.7.0. Thanks to @anubra266 for fixing that.

@Kysluss Kysluss closed this as completed Oct 10, 2024
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

2 participants