Skip to content

Commit 8dec26f

Browse files
committed
fix
1 parent d3cc6e9 commit 8dec26f

5 files changed

Lines changed: 34 additions & 8 deletions

File tree

devconnect-app/next.config.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ const nextConfig: NextConfig = {
2222
os: false,
2323
path: false,
2424
};
25-
}
2625

27-
// Add null-loader for fastfile to prevent fs module issues
28-
config.module.rules.push({
29-
test: /fastfile/,
30-
use: {
31-
loader: 'null-loader',
32-
},
33-
});
26+
// Provide a mock fastfile module for client-side builds
27+
config.resolve.alias = {
28+
...config.resolve.alias,
29+
fastfile: require.resolve('./webpack/fastfile-mock.js'),
30+
};
31+
}
3432

3533
return config;
3634
},

devconnect-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"@types/react-swipeable-views": "^0.13.6",
8282
"eslint": "^9",
8383
"eslint-config-next": "15.4.4",
84+
"null-loader": "^4.0.1",
8485
"prettier": "^3.6.2",
8586
"tailwindcss": "^4",
8687
"tw-animate-css": "^1.3.5",
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Mock fastfile module for client-side builds
2+
// This provides the exports that snarkjs and other packages expect
3+
4+
// Mock functions that return promises resolving to empty objects or null
5+
const mockFunction = () => Promise.resolve(null);
6+
7+
// Export all the functions that packages are trying to import
8+
export const readExisting = mockFunction;
9+
export const createOverride = mockFunction;
10+
export const open = mockFunction;
11+
export const close = mockFunction;
12+
export const read = mockFunction;
13+
export const write = mockFunction;
14+
15+
// Default export
16+
export default {
17+
readExisting,
18+
createOverride,
19+
open,
20+
close,
21+
read,
22+
write,
23+
};

lib/components/event-schedule-new/layout-app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const Layout = (props: CalendarLayoutProps) => {
6161
setFilter={setFilter}
6262
resetFilter={resetFilter}
6363
filter={filter}
64+
events={props.events}
6465
/>
6566

6667
<div className="relative flex">

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)