-
I'm using TypeScript and can't get my Storybook to build due to missing twig types. Here's the error I get when I run $ npm run build
|
Beta Was this translation helpful? Give feedback.
Answered by
larowlan
Sep 23, 2024
Replies: 2 comments 1 reply
-
Drop this in .storybook/src/global.d.ts declare module "*.twig" {
export default "" as (args) => string
} Then make sure you're setup to read that in your tsconfig.json |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dibs
-
Full credit to @jptaranto for this solution |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drop this in .storybook/src/global.d.ts
Then make sure you're setup to read that in your tsconfig.json