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

fix(react-ssr-prepass.d.ts): use export default #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jtomaszewski
Copy link

We need to import this package directly because we need to fork some of the plasmic's prepass code (such as this https://github.com/plasmicapp/plasmic/blob/master/packages/prepass/src/index.tsx ), because we need to set up swr by ourselves.

However, this is currently impossible to us, because when importing this package, we get such an error during typescript compilation:

$ tsc -p tsconfig.package.json
node_modules/@plasmicapp/react-ssr-prepass/dist/react-ssr-prepass.d.ts:17:3 - error TS2309: An export assignment cannot be used in a module with other exported elements.

17   export = ssrPrepass
     ~~~~~~~~~~~~~~~~~~~


Found 1 error in node_modules/@plasmicapp/react-ssr-prepass/dist/react-ssr-prepass.d.ts:17

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This change makes the error disappear.

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

Successfully merging this pull request may close these issues.

1 participant