-
Notifications
You must be signed in to change notification settings - Fork 179
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
TS cannot find type definitions for story editor when setting up a standalone editor #14014
Comments
Also the setup was pretty rough, the docs on this seem really out of date, I ended up using Vite, because newer versions of webpack seem to have even more trouble running this library, and had to go through all these steps just to get it working
it would be really nice if someone could provide a more up-to-date tutorial on setting this up with modern tools, or at least recommended versions of webpack and libraries to use |
Thanks for opening this issue. The story-editor package is only partially written in TypeScript and thus the TS definitions are very incomplete. So as you see in the As for the documentation, we don't have any Vite-specific guidance/tutorial at the moment, but appreciate the feedback! |
Bug Description
I was trying to set up a standalone story editor and after following the steps described in the tutorial to set up a standalone story editor, if I import the editor, TS can't find type definitions
Could not find a declaration file for module '@googleforcreators/story-editor'.
Expected Behaviour
Type definitions can be found correctly
Steps to Reproduce
yarn create vite story-editor-standalone --template react-ts
yarn add [email protected] [email protected]
andyarn add -D @types/react@17 @types/react-dom@17
- as far as i know the story editor only works with react 17Screenshots
Additional Context
The text was updated successfully, but these errors were encountered: