pucelle / vscode-css-navigation

Allowing Go to definition from HTML to CSS, or Find References from CSS to HTML.
https://marketplace.visualstudio.com/items?itemName=pucelle.vscode-css-navigation
MIT License
64 stars 8 forks source link

Build Documentation #51

Closed kdumontnu closed 3 years ago

kdumontnu commented 3 years ago

Can you add documentation to build/contribute?

I'm getting the following error when I try to start with npm install:

npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "github:pucelle/ignore-walk": name can only contain URL-friendly characters
pucelle commented 3 years ago

OK, I will fix this soon.

pucelle commented 3 years ago

Try again.

kdumontnu commented 3 years ago

The error above is resolved, but I still get many type errors when I run npm run build:

...
server/node_modules/vscode-languageserver/lib/main.d.ts:477:35 - error TS2314: Generic type 'NotificationType<P>' requires 1 type argument(s).

477     sendNotification<P, RO>(type: NotificationType<P, RO>, params: P): void;
                                      ~~~~~~~~~~~~~~~~~~~~~~~

server/src/languages/jsx/jsx-scanner.ts:4:9 - error TS2614: Module '"../../../node_modules/vscode-uri/lib/umd"' has no exported member 'URI'. Did you mean to use 'import URI from "../../../node_modules/vscode-uri/lib/umd"' instead?

4 import {URI} from 'vscode-uri'
          ~~~
...

Perhaps if you commit your package-lock.json file so that I can use the same package versions?

pucelle commented 3 years ago

Checked in package-lock.json, try again.

kdumontnu commented 3 years ago

That resolved many of the errors, but I think you need to update vscode-uri in ./server/package.json to the latest version to get rid of error TS2614: Module '"../../../node_modules/vscode-uri/lib/umd"' has no exported member 'URI'.

pucelle commented 3 years ago

I've upgraded version of vscode-uri, sorry it's in wrong version before.