ipfs-examples / js-ipfs-examples

Collection of js-ipfs examples
246 stars 157 forks source link

Use ipfs in angular #36

Open joshuamshana opened 2 years ago

joshuamshana commented 2 years ago

I copy everything from browser-angular example and add my code. When i run inside the examples folder it run okay when copy for folder outside the example folder it not running it show the folowing errors.

./node_modules/libp2p-kad-dht/src/routing-table/index.js:11:27-66 - Error: Module not found: Error: Can't resolve './generated-prefix-list.json' in '/Users/xxxxxx/BFastProjects/smartstock-sales/node_modules/libp2p-kad-dht/src/routing-table'

./node_modules/ipfs-bitswap/esm/src/bitswap.js:187:29-44 - Error: export 'AbortController' (imported as 'AbortController') was not found in 'native-abort-controller' (possible exports: __esModule, createBitswap)

and a lot more errors.

oliveriosousa commented 2 years ago

This issue has been fixed https://github.com/webpack/enhanced-resolve/issues/304

Please, run yarn clean in the root of the project and do a clean install yarn install

Sorry for the late response