Skip to content

Commit a0d623a

Browse files
dmytrokirpaclaude
andcommitted
fix(public-docsite-v9-headless): fix root import in tailwind sandbox template
The sandbox App template was importing Provider from the package root which caused Vite to fail with "Missing '.' specifier" since the package only exposes sub-path exports. Fixed to use the correct sub-path import. Reproduction: https://stackblitz.com/edit/eu9cefke?file=src%2Fexample.tsx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 33dfa30 commit a0d623a

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

apps/public-docsite-v9-headless/.storybook/preview.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ export const parameters = {
2424
...rootPreview.parameters.exportToSandbox,
2525
...tailwindSandboxTemplate,
2626
},
27+
reactStorybookAddon: {
28+
docs: {
29+
argTable: {
30+
slotsApi: true,
31+
nativePropsApi: true,
32+
},
33+
copyAsMarkdown: true,
34+
tableOfContents: true,
35+
dirSwitcher: true,
36+
// headless components don't support theming
37+
themePicker: false,
38+
},
39+
},
2740
};
2841

2942
export const tags = ['autodocs'];

apps/public-docsite-v9-headless/.storybook/tailwind-sandbox-template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const sandboxApp = `import { Provider } from '@fluentui/react-headless-components-preview';
1+
const sandboxApp = `import { Provider } from '@fluentui/react-headless-components-preview/provider';
22
import { Example } from './example';
33
44
const App = () => (

0 commit comments

Comments
 (0)