Coder Social home page Coder Social logo

Comments (12)

BrainCrumbz avatar BrainCrumbz commented on May 27, 2024 1

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.

smnbbrv avatar smnbbrv commented on May 27, 2024 1

@BrainCrumbz you are right, fixed it with 1.3.1

I hope it is the last dinosaur :) Happy New Year guys!

from ngx-sortablejs.

JamboBuenna avatar JamboBuenna commented on May 27, 2024 1

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.

smnbbrv avatar smnbbrv commented on May 27, 2024 1

That's fine, happens :)

from ngx-sortablejs.

BrainCrumbz avatar BrainCrumbz commented on May 27, 2024

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.

BrainCrumbz avatar BrainCrumbz commented on May 27, 2024

Cool. Happy New Year to you too! Cheers

from ngx-sortablejs.

BBaysinger avatar BBaysinger commented on May 27, 2024

Is this back? What am I doing wrong here?: #46

from ngx-sortablejs.

smnbbrv avatar smnbbrv commented on May 27, 2024

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.

JamboBuenna avatar JamboBuenna commented on May 27, 2024

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.

smnbbrv avatar smnbbrv commented on May 27, 2024

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.

JamboBuenna avatar JamboBuenna commented on May 27, 2024

Node modules was checked into git. :-(

Thank you so much for the support, sorry for the stupid mistake 👍

from ngx-sortablejs.

bijay-singh avatar bijay-singh commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.