Skip to content

Commit 0a883bd

Browse files
committed
fix(tests): Fix commonjs cancelable-promise module error
Signed-off-by: Christopher Ng <[email protected]>
1 parent 00ed78e commit 0a883bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vite.config.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ export default defineConfig((env) => {
4141
classNameStrategy: 'non-scoped',
4242
},
4343
},
44-
// Fix unresolvable .css extension for ssr
4544
server: {
4645
deps: {
47-
inline: [/@nextcloud\/vue/],
46+
inline: [
47+
/@nextcloud\/vue/, // Fix unresolvable .css extension for ssr
48+
/@nextcloud\/files/, // Fix CommonJS cancelable-promise not supporting named exports
49+
],
4850
},
4951
},
5052
},

0 commit comments

Comments
 (0)