Attempted import error: 'useGlobalTheme' is not exported from '@atlaskit/theme/components'

we are using @atlaskit/modal-dialog. as soon as we upgrade to latest version it is giving us error

in ./node_modules/@atlaskit/blanket/dist/esm/blanket.js
Attempted import error: ‘useGlobalTheme’ is not exported from ‘@atlaskit/theme/components’

1 Like

Hi there!

What version of @atlaskit/theme are you using? This shouldn’t be a problem with any version greater than 11.2.0. Can you provide a link to a reproduction?

1 Like

@AlexHinds , I was able to reproduce this with the latest version: 11.3.0.

Hi @NitinGoyal ,

I believe the AtlasKit team is in the process of fixing this.

Regards,
Dugald

it solved in blanket now it raise issue it other components.

./node_modules/@atlaskit/icon/dist/esm/components/icon.js 
Attempted import error: 'useGlobalTheme' is not exported from '@atlaskit/theme/components'.

Today we face with

[INFO] WARNING in ./node_modules/@atlaskit/inline-edit/node_modules/@atlaskit/icon/dist/esm/components/icon.js 67:24-38
[INFO] "export 'useGlobalTheme' was not found in '@atlaskit/theme/components'