Closed Gennady-G closed 1 year ago
Hi @Gennady-G,
fs
module is the Node.js one (runs on a server, not in a browser).
When you bundle a solution for the frontend you can't use server side modules. That's why the error, as the generator's solutions is client side browser apps targeted.
Arghh... Thank You much Andrew!) And also thank You much for sppp generator! :) 👍
Greetings Andrew!
Want to read rtf template and then create modified report in sp library.
https://www.npmjs.com/package/@iarna/rtf-to-html https://github.com/iarna/rtf-to-html
I'm new in typescript and got stuck on "Uncaught Error: Cannot find module 'fs'" error..
Don't understand how to reference fs module (as I understand it should be part of NodeJs, but it is not found..)
My example code is:
Best regards, Gennady