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

Typing issues with Vite react-ts template #160

Open
imjakechapman opened this issue May 1, 2023 · 0 comments
Open

Typing issues with Vite react-ts template #160

imjakechapman opened this issue May 1, 2023 · 0 comments

Comments

@imjakechapman
Copy link

imjakechapman commented May 1, 2023

I can't seem to get this repro'd on codesandbox, seems to only be an issue with a local version of vite + react, haven't tried with CRA or Next yet.

There are types at '/Users/----/Code/demos/react-runner-demo/node_modules/react-runner/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-runner' library may need to update its package.json or typings.

Repro steps

npm create vite
cd directory && npm install
npm install react-runner
Update App.tsx to

import { Runner } from 'react-runner';

function App() {
  return <Runner code={``} scope={{}} />;
}

export default App;
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