Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Web Components v3 does not seem to work#35249

Unanswered
jajjur asked this question inGeneral
Discussion options

The new version of web components (v3) does not seem to work properly when using them from CDN.

I´ve added the script tag like this : <script type="module" src="https://unpkg.com/@fluentui/web-components@beta"></script> but im getting no css styles and the components does not work.
I have also tried to set the theme via an inline script :

<script type="module"> import { setTheme } from 'https://unpkg.com/@fluentui/web-components@beta'; import { webLightTheme } from 'https://unpkg.com/@fluentui/tokens'; setTheme(webLightTheme);</script>

But that just generates these errors in the browser :
The requested module 'https://unpkg.com/@fluentui/web-components@beta' does not provide an export named 'setTheme'
The requested module 'https://unpkg.com/@fluentui/tokens' does not provide an export named 'webLightTheme'

Are there any other prerequisites that should be in place, or are the new components not intended to work like this anymore ?
The v2 components works fine by just including the CDN module reference.

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
1 participant
@jajjur

[8]ページ先頭

©2009-2025 Movatter.jp