Add debug pages and Next.js config for lightweight-charts
- Added multiple test pages to debug chart rendering issues - Updated Next.js config to handle ES modules and transpile lightweight-charts - Attempting to resolve chart initialization problems
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
transpilePackages: ['lightweight-charts'],
|
||||
webpack: (config) => {
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
fs: false,
|
||||
};
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user