Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to bundle vue and angular examples #174

Closed
oliveriosousa opened this issue Sep 14, 2021 · 2 comments
Closed

Fails to bundle vue and angular examples #174

oliveriosousa opened this issue Sep 14, 2021 · 2 comments
Labels
need/triage Needs initial labeling and prioritization

Comments

@oliveriosousa
Copy link

Description

It is not possible to bundle ipfs properly using webpack defaults of Vue and Angular (ipfs-examples/js-ipfs-examples#36)

Error

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/dag-cbor.js:11:19-33 - Error: export 'decode' (imported as 'dagCbor') was not found in '@ipld/dag-cbor' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/index.js:11:3-13 - Error: export 'code' (imported as 'dagPb') was not found in '@ipld/dag-pb' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/index.js:13:3-15 - Error: export 'code' (imported as 'dagCbor') was not found in '@ipld/dag-cbor' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/content/file.js:36:13-29 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/content/file.js:64:15-25 - Error: export 'code' (imported as 'dagPb') was not found in '@ipld/dag-pb' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/content/file.js:65:47-59 - Error: export 'decode' (imported as 'dagPb') was not found in '@ipld/dag-pb' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/content/file.js:72:15-27 - Error: export 'code' (imported as 'dagCbor') was not found in '@ipld/dag-cbor' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/content/file.js:73:47-61 - Error: export 'decode' (imported as 'dagCbor') was not found in '@ipld/dag-cbor' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/content/hamt-sharded-directory.js:30:15-21 - Error: export 'decode' (imported as 'decode') was not found in '@ipld/dag-pb' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/index.js:31:17-23 - Error: export 'decode' (imported as 'decode') was not found in '@ipld/dag-pb' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/resolvers/unixfs-v1/index.js:44:15-31 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/utils/find-cid-in-shard.js:8:18-35 - Error: export 'murmur3128' (imported as 'murmur3128') was not found in '@multiformats/murmur3' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/utils/find-cid-in-shard.js:24:42-48 - Error: export 'Bucket' (imported as 'Bucket') was not found in 'hamt-sharding' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/utils/find-cid-in-shard.js:54:25-35 - Error: export 'createHAMT' (imported as 'createHAMT') was not found in 'hamt-sharding' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-exporter/esm/src/utils/find-cid-in-shard.js:103:11-17 - Error: export 'decode' (imported as 'decode') was not found in '@ipld/dag-pb' (possible exports: __esModule, exporter, recursive, walkPath)

../../node_modules/ipfs-unixfs-importer/esm/src/chunker/rabin.js:83:41-47 - Error: export 'create' (imported as 'create') was not found in 'rabin-wasm' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/dir.js:8:23-29 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/dir.js:13:19-25 - Error: export 'encode' (imported as 'encode') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/dir.js:13:26-33 - Error: export 'prepare' (imported as 'prepare') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/buffer-importer.js:38:25-31 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/buffer-importer.js:44:21-33 - Error: export 'encode' (imported as 'dagPb') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/index.js:93:28-34 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/index.js:99:19-25 - Error: export 'encode' (imported as 'encode') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/index.js:99:26-33 - Error: export 'prepare' (imported as 'prepare') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/index.js:118:20-26 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/index.js:159:21-27 - Error: export 'encode' (imported as 'encode') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dag-builder/file/index.js:159:28-35 - Error: export 'prepare' (imported as 'prepare') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-flat.js:105:25-31 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-flat.js:114:21-27 - Error: export 'encode' (imported as 'encode') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-flat.js:114:28-35 - 1mError: export 'prepare' (imported as 'prepare') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-sharded.js:14:19-29 - Error: export 'createHAMT' (imported as 'createHAMT') was not found in 'hamt-sharding' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-sharded.js:137:27-33 - Error: export 'Bucket' (imported as 'Bucket') was not found in 'hamt-sharding' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-sharded.js:229:20-26 - Error: export 'UnixFS' (imported as 'UnixFS') was not found in 'ipfs-unixfs' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-sharded.js:241:19-25 - Error: export 'encode' (imported as 'encode') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/dir-sharded.js:241:26-33 - Error: export 'prepare' (imported as 'prepare') was not found in '@ipld/dag-pb' (possible exports: __esModule, importer)

../../node_modules/ipfs-unixfs-importer/esm/src/options.js:12:18-35 - Error: export 'murmur3128' (imported as 'murmur3128') was not found in '@multiformats/murmur3' (possible exports: __esModule, importer)
@oliveriosousa oliveriosousa added the need/triage Needs initial labeling and prioritization label Sep 14, 2021
@oliveriosousa oliveriosousa changed the title error: Fails to bundle vue and angular examples Fails to bundle vue and angular examples Sep 14, 2021
@achingbrain
Copy link
Member

This should be fixed by webpack/enhanced-resolve#304

@oliveriosousa
Copy link
Author

oliveriosousa commented Sep 21, 2021

This has been fixed @achingbrain and it is already in the latest release of enhanced-resolve 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

2 participants