Skip to content

Using fast component inside a Web Component #5294

Answered by EisenbergEffect
TimO2221 asked this question in Q&A
Discussion options

You must be logged in to vote

I think the issue you have is the module path for the import statement. It seems like you are maybe trying to do this directly from a browser script without a bundler. If that's the case, try this:

import { 
    allComponents, 
    provideFASTDesignSystem 
} from "../node_modules/@microsoft/fast-components/dist/esm/index.js";

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TimO2221
Comment options

@EisenbergEffect
Comment options

@TimO2221
Comment options

Answer selected by TimO2221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants