-
Notifications
You must be signed in to change notification settings - Fork 215
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
TS2304: Cannot find name 'Sortable'. #186
Comments
Does setting |
Using - import { MoveEvent, Options, SortableEvent } from "sortablejs";
+ import Sortable, { MoveEvent, Options, SortableEvent } from "sortablejs"; This seems preferable. How does that file get built? |
At first glance, it looks like it should already be included here. ❓ |
That's what I found as well...not sure why that import doesn't end up in the compiled definitions file.
|
I wonder if this is the same underlying issue from Parcel: parcel-bundler/parcel#4250 What was the reason for switching to Parcel for building this library? At least the Parcel-2 beta doesn't quite seem ready |
Is that issue going to be resolved? It prevents me from publishing app, and I don't want to use skips |
Issue with SortableJS types rather than our code. See SortableJS/react-sortablejs#186 andemove skipLibCheck once the issue is fixed.
* Add ForkTsChecker webpack plugin Runs type checking in a separate thread. Previously webpack (with babel-loader) was completely ignoring typescript types. * Remove type_checker container Now that webpack does type-checking, it is superfluous. * Update package-lock.json * Fix some typescript errors in code * Skip type checking of library definitions Issue with SortableJS types rather than our code. See SortableJS/react-sortablejs#186 andemove skipLibCheck once the issue is fixed. * Ignore local node_modules folder in docker context
Use [email protected] to build can resolve this problem. |
Getting these errors when trying to build my project
yarn.lock
has these versions:The text was updated successfully, but these errors were encountered: