Error: Duplicate Typings

UI Components for Angular
Post Reply
mcwebdev
Posts: 68
Joined: 03 Mar 2016, 02:16

28 Mar 2016, 19:59

I noticed in the ngPrime package.json it has this declared for the post install.

Code: Select all

"postinstall": "npm run typings install",
However when I run

Code: Select all

npm install typings --global
I get duplicate typings error. Should the package json have some kind of global flag added or am I having a different issue somewhere else?

So something like this allowed?

Code: Select all

"postinstall": "npm run typings install -g",

mcwebdev
Posts: 68
Joined: 03 Mar 2016, 02:16

28 Mar 2016, 20:08

I am also getting another typing error when running tsc. This seems to be on many of the components that rely on jquery

Code: Select all

$ tsc
app/components/accordion/accordion.ts(38,51): error TS2339: Property 'puiaccordion' does not exist on type 'JQuery'.

Code: Select all

{
  "ambientDependencies": {
    "chart": "github:DefinitelyTyped/DefinitelyTyped/chartjs/chart.d.ts#9f28e020a04c0b726a5e21c5cf0d1fc91f0de626",
    "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2",
    "jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#470954c4f427e0805a2d633636a7c6aa7170def8",
    "jqueryui": "github:DefinitelyTyped/DefinitelyTyped/jqueryui/jqueryui.d.ts#a3a5cd5554dc2c0ff8955d1db0673879af3095bc",
    "fullcalendar": "github:DefinitelyTyped/DefinitelyTyped/fullCalendar/fullCalendar.d.ts#4de74cb527395c13ba20b438c3a7a419ad931f1c",
    "moment": "github:DefinitelyTyped/DefinitelyTyped/moment/moment-node.d.ts#1be6a281906e5cd179a97c86bd58ebf9cdc9c6a5"
  }

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Mar 2016, 09:19

"postinstall": "npm run typings install",

This was removed a long time ago. I'd suggest using the latest version like 0.9.1 at the time of writing.

You are not talking about primeng not primeng-quickstart right?

mcwebdev
Posts: 68
Joined: 03 Mar 2016, 02:16

29 Mar 2016, 18:28

I think I need to learn more about GIT, I am not sure how to pull down your latest because I

Code: Select all

init
the repo on my local and started tracking my changes.

I was able to remedy my problem with the quickstart by downloading the showcase and running typing's install, and then taking that typing's folder and pasting it into my quick start repo. This seemed to bring over all the jquery typing's that I needed.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests