Comments (12)
I think I spotted at least something strange. In commit 07161f93 the options interface has been moved to its own file, sortablejs-options.d.ts
but I think that has the wrong extension.
.d.ts
files should be only intended as output artifacts, generated by TS compilation, and they work as declaration for package users (including IDEs), when they only have JS implementation left, no actual TS. They're part of the {.d.ts
, .metadata.json
, .map
} tuple that is needed when consuming a library from ng2 + TS.
If all that makes sense, the proper name for that file should be sortablejs-options.ts
, which should then generate all its outputs, as any other TS file.
from ngx-sortablejs.
@BrainCrumbz you are right, fixed it with 1.3.1
I hope it is the last dinosaur :) Happy New Year guys!
from ngx-sortablejs.
I'm currently seeing this now for angular 5 getting
"Cannot find module 'angular-sortable.js'." I can resolve this only by running the install scripts on the specific machine.
npm install --save sortablejs && npm install --save angular-sortablejs
from ngx-sortablejs.
That's fine, happens :)
from ngx-sortablejs.
Yeah, can confirm this as well. We see the same error highlighed in VS Code, and webpack output says the same:
[default] xxxx\node_modules\angular-sortablejs\dist\index.d.ts:1:15
Cannot find module './src/sortablejs-options'.
[default] xxxx\node_modules\angular-sortablejs\dist\src\sortablejs.module.d.ts:1:35
Cannot find module './sortablejs-options'.
[default] xxxx\src\crm-backend\view\field-list\field-list.component.ts:7:10
Module '"xxxx/node_modules/angular-sortablejs/dist/index"' has no exported member 'SortablejsOptions'.
[default] Checking finished with 3 errors
Maybe some change has been introduced between 1.3.0-0 and 1.3.0 ?
from ngx-sortablejs.
Cool. Happy New Year to you too! Cheers
from ngx-sortablejs.
Is this back? What am I doing wrong here?: #46
from ngx-sortablejs.
And... what is the problem? :D once you installed it on one machine you need to run simple npm install
on other machines. This is how npm works
from ngx-sortablejs.
npm install doesn't update it on the other machines, only a specified install. PS Thanks for crazy fast response. (It does for other added modules just not this one)
from ngx-sortablejs.
this is really weird... To me it sounds like package.json
does not get updated which is weird. But unfortunately I cannot help here. The libraries are published and work perfectly fine on any machine I have... And you are actually the really first with an issue like that.
This is definitely an NPM issue. The best I can propose is after you do npm install --save sortablejs && npm install --save angular-sortablejs
try to look inside of the package.json to see whether the dependencies were added to dependencies
. If they were - commit package.json and package-lock.json and pull it on other machines and npm install
must install them. If they are not added to the dependencies then it is really weird and also should not happen
from ngx-sortablejs.
Node modules was checked into git. :-(
Thank you so much for the support, sorry for the stupid mistake 👍
from ngx-sortablejs.
npm install --save sortablejs && npm install --save angular-sortablejs
Even I was facing this issue. Thanks a lot, your solution helped me :)
from ngx-sortablejs.
Related Issues (20)
- Issue with dragging last item in last row HOT 1
- Mobile reordering is spotty
- Support Angular 12 HOT 9
- Plugins swap not working, please help me to custom add swap function.
- Angular 6 issue compatibility HOT 3
- Does not work with Angular Material Grid List
- Unmount Plugins on ngDestroy HOT 1
- Support Angular 13 HOT 18
- Module '"ngx-sortablejs"' has no exported member 'SortablejsOptions'.ts in Angular 12 HOT 4
- Publish an Ivy distribution HOT 1
- Unable to evaluate this expression statically HOT 2
- Incorrect order after adding an element in array HOT 3
- Escape to cancel drag/drop operation
- this libray found not support Anglar13 any body Idia about that HOT 11
- Generating browser application bundles (phase: setup)...Processing legacy "View Engine" libraries
- Make hold to start dragging
- How to set a boundary to the drag operation
- npmjs does not show any helpful text for the package
- Angular 11 simple sorting not working
- Compatibility with the Ivy view engine HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-sortablejs.