hyperweb-io / hyperweb-io/interchain
Don't work with react-scripts and vite
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
With react scripts I get this error:
> Attempted import error: 'cosmos' is not exported from 'interchain' (imported as 'cosmos').
> WARNING in ./node_modules/interchain/dist/index.mjs
> Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
> Failed to parse source map from '../node_modules/interchain/src/index.ts' file: Error: ENOENT: no such file or directory, open '../node_modules/interchain/src/index.ts'
>
> ERROR in ./src/index.tsx 39:12-18
> export 'cosmos' (imported as 'cosmos') was not found in 'interchain' (module has no exports)
>
> ERROR in ./node_modules/interchain/dist/index.mjs 1:0-26
> Module not found: Error: Can't resolve './codegen' in '../node_modules/interchain/dist'
> Did you mean 'index.mjs'?
> BREAKING CHANGE: The request './codegen' failed to resolve only because it was resolved as fully specified
> (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
> The extension in the request is mandatory for it to be fully specified.
> Add the extension to the request.
With vite:
Safari:
`SyntaxError: Importing binding name 'cosmos' is not found.
Chrome:
> Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/interchain.js?v=0a96d252' does not provide an export named 'cosmos'
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.