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

UMD build doesn't work #2

Open
jasny opened this issue Nov 6, 2024 · 0 comments
Open

UMD build doesn't work #2

jasny opened this issue Nov 6, 2024 · 0 comments

Comments

@jasny
Copy link
Member

jasny commented Nov 6, 2024

When using the UMD build in Ownables SDK, we get the following error.

Failed to compile.

Module not found: Error: Can't resolve 'simple-iframe-rpc' in '/home/arnold/Projects/ltonetwork/ownables-sdk/src/components'
WARNING in ./node_modules/@scure/base/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/arnold/Projects/ltonetwork/ownables-sdk/node_modules/@scure/base/lib/index.js.map' file: Error: ENOENT: no such file or directory, open '/home/arnold/Projects/ltonetwork/ownables-sdk/node_modules/@scure/base/lib/index.js.map'

ERROR in ./src/components/Ownable.tsx 7:0-69
Module not found: Error: Can't resolve 'simple-iframe-rpc' in '/home/arnold/Projects/ltonetwork/ownables-sdk/src/components'

ERROR in ./src/services/Ownable.service.ts 7:0-46
Module not found: Error: Can't resolve 'simple-iframe-rpc' in '/home/arnold/Projects/ltonetwork/ownables-sdk/src/services'

webpack compiled with 2 errors and 1 warning

Reverted back to AMD build for now.

jasny added a commit that referenced this issue Nov 6, 2024
This reverts commit 4a02c59.

Issue with loading UMD lib in ownables SDK. See #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant