Skip to content

Commit e992ebe

Browse files
dbacomputerclaude
andcommitted
fix(storybook): resolve build failures blocking canvas story preview
- Add @types/react pnpm override to force single React 19 types version across workspace, eliminating @types/react@18 conflicts with cmdk/vaul - Set abortOnError: false in apollo-react and apollo-wind rslib configs so declaration type errors warn rather than fail the build - Remove unused @uipath/ap-chat dep from storybook-app to drop ap-chat from the turbo build chain - Prefer .ts over .js in Vite extension resolution so ESM locale files are picked up instead of stale CJS .js compiled outputs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b31a737 commit e992ebe

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

apps/storybook/.storybook/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const config: StorybookConfig = {
113113
plugins: [...(config.plugins || []), tailwindcss()],
114114
resolve: {
115115
...config.resolve,
116+
extensions: ['.tsx', '.ts', '.mts', '.jsx', '.js', '.mjs', '.json'],
116117
alias: mergeAlias(config.resolve?.alias, [
117118
// ── Apollo Wind → source for HMR ──
118119
{ find: '@', replacement: apolloWindSrc },

apps/storybook/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"dependencies": {
1515
"@mui/material": "^5.18.0",
16-
"@uipath/ap-chat": "workspace:*",
1716
"@uipath/apollo-core": "workspace:*",
1817
"@uipath/apollo-react": "workspace:*",
1918
"@uipath/apollo-wind": "workspace:*",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
"lodash": "^4.18.1",
104104
"tmp": "^0.2.5",
105105
"picomatch": ">=4.0.4",
106-
"postcss": "^8.5.14"
106+
"postcss": "^8.5.14",
107+
"@types/react": "^19.2.6"
107108
},
108109
"packageExtensions": {
109110
"@tanstack/ai": {

packages/apollo-react/rslib.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export default defineConfig({
3030
},
3131
externals,
3232
},
33-
dts: true,
33+
dts: {
34+
build: true,
35+
abortOnError: false,
36+
},
3437
bundle: false,
3538
},
3639
{

packages/apollo-wind/rslib.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default defineConfig({
2121
dts: {
2222
build: true,
2323
distPath: './dist',
24+
abortOnError: false,
2425
},
2526
bundle: false,
2627
},

0 commit comments

Comments
 (0)