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

@garfish/es-module returns "does not provide an export named..." while analyse module with export * from ... #634

Open
5 tasks done
PIMBA opened this issue Jul 17, 2023 · 2 comments

Comments

@PIMBA
Copy link

PIMBA commented Jul 17, 2023

Describe the bug

moduleA:

export const App = () => null;

moduleB:

export * from 'moduleA';

moduleC:

import { App } from 'moduleB';
// ...other code

remote application:

import Runtime from "@garfish/es-module";

const runtime = new Runtime();
runtime
  .analysisModule(
    `import 'http://localhost:5173/src/moduleC';`
  );

Got Error:
image

Reproduction:
https://github.com/PIMBA/rspack-tests/tree/main/garfish-test

cd vite-test-app
pnpm run dev
cd garfish-test
pnpm run dev

Maybe some

Reproduction

https://github.com/PIMBA/rspack-tests/tree/main/garfish-test

Used Package Manager

pnpm

System Info

System:
    OS: macOS 13.4
    CPU: (8) arm64 Apple M1
    Memory: 86.17 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /usr/local/bin/node
    Yarn: 1.22.11 - ~/.npm-global/bin/yarn
    npm: 9.5.1 - /usr/local/bin/npm
    pnpm: 6.23.6 - ~/Library/pnpm/pnpm
    Watchman: 2023.05.22.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 114.0.5735.133
    Safari: 16.5
  npmPackages:
    @garfish/es-module: ^1.16.2 => 1.16.2

Validations

@PIMBA
Copy link
Author

PIMBA commented Jul 17, 2023

@imtaotao
Copy link
Collaborator

Fixed in this pr: #635

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

2 participants