Skip to content

Commit

Permalink
Ignore typeorm errors during nextjs build
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Nov 19, 2024
1 parent 2ebc71c commit c744a35
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion client/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
webpack(config) {
const warning = [
...(config.ignoreWarnings || []),
{
module: /typeorm/,
message: /the request of a dependency is an expression/,
},
{
module: /typeorm/,
message: /Can't resolve 'react-native-sqlite-storage'/,
},
{
module: /typeorm/,
message: /Can't resolve '@sap\/hana-client\/extension\/Stream'/,
},
{
module: /typeorm/,
message: /Can't resolve 'mysql'/,
},
{
module: /app-root-path/,
message: /the request of a dependency is an expression/,
},
];
config.ignoreWarnings = warning;
return config;
},
};

export default nextConfig;

0 comments on commit c744a35

Please sign in to comment.