Open Hassaan0 opened 1 year ago
Hi did you follow the instructions here https://github.com/NathanaelA/fluentreports/tree/master/generator
Specifically creating the browser version of the code base:
browserify fluentReportsBuilder.js -s fluentReports --ignore iconv-lite -o ../generator/fluentReportsBrowser.js
If you are doing server only, then Node provides "Buffer"
Hi did you follow the instructions here https://github.com/NathanaelA/fluentreports/tree/master/generator
Specifically creating the browser version of the code base:
browserify fluentReportsBuilder.js -s fluentReports --ignore iconv-lite -o ../generator/fluentReportsBrowser.js
If you are doing server only, then Node provides "Buffer"
Yeah I tried it again and it works.. but its showing me the GUI .. i want to use code base functionality but i cant figure it out how to use it .. could you please help me out
Steps to reproduce.
npm i fluentreports
Sample Data
Adding plugins section with ProviderPlugin into webpack.config.js: module.exports = { // ... plugins: [ // Work around for Buffer is undefined: // https://github.com/webpack/changelog-v5/issues/10 new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'], }), new webpack.ProvidePlugin({ process: 'process/browser', }), ]
Also add in resolve.fallback into webpack.config.js : resolve: { extensions: [ '.ts', '.js' ], fallback: { "stream": require.resolve("stream-browserify"), "buffer": require.resolve("buffer") } }