transmute-industries / transmute-framework

TypeScript dApp Framework
https://framework.transmute.industries/
42 stars 8 forks source link

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

Closed OR13 closed 7 years ago

OR13 commented 7 years ago

Webpack / babel issues with IPLD, that are not present when using create-react-app... possibly they are just being ignored...

OR13 commented 7 years ago

I've resolved this by updating webpack config...

  node: {
    fs: 'empty'
  }

Now i get a warning:

./~/source-map-support/source-map-support.js
Module not found: Error: Can't resolve 'module' in '/Users/orie/TransmuteIndustries/transmute-framework/examples/react-webpack-babel/node_modules/source-map-support'
 @ ./~/source-map-support/source-map-support.js 473:15-32
 @ ./~/cbor/lib/cbor.js
 @ ./~/ipld/lib/cbor.js
 @ ./~/ipld/lib/index.js
 @ ./~/transmute-framework/build/TransmuteIpfs/TransmuteIpfs.js

I proved the warning does not destroy the ability to read and write objects from ipfs.

It might cause problems for a build system though

OR13 commented 7 years ago

closing for now