sujith3g / docxtemplater-link-module

:anchor: Hyperlink module for docxtemplater
https://www.npmjs.com/package/docxtemplater-link-module
MIT License
22 stars 15 forks source link

Module not found: Error: Cannot resolve module 'fs' #1

Closed petricachiriac closed 8 years ago

petricachiriac commented 8 years ago

Can we remove fs = require('fs'); from

here https://github.com/sujith3g/docxtemplater-link-module/blob/master/index.js#L7 and have this dependence only for testing.

On build I have this error:

ERROR in ./~/docxtemplater-link-module/index.js
Module not found: Error: Cannot resolve module 'fs' in /builds/web-project/node_modules/docxtemplater-link-module
 @ ./~/docxtemplater-link-module/index.js 7:5-18
sujith3g commented 8 years ago

Removed it, fs only required for testing

petricachiriac commented 8 years ago

:+1: is working perfect now! Thanks!