Skip to content
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

Change yarn to npm in TravisCI config #158

Closed
wants to merge 6 commits into from

Conversation

declanvk
Copy link
Contributor

@declanvk declanvk commented Apr 3, 2018

No description provided.

@ddavidebor
Copy link
Contributor

Why?

@declanvk
Copy link
Contributor Author

declanvk commented Apr 3, 2018

@ddavidebor Do you have gitter? I sent a message explaining my reasoning. I'll copy it below.

Hello, I am the intern working on Jupyterlab and I’m currently encountering some issues around Travis and the use of yarn.

Specifically, any use of yarn && yarn build will produce errors similar to :

$ tsc && node ./scripts/extract.js && node ./scripts/copyassets.js && npm run build:pack
node_modules/@jupyterlab/apputils/node_modules/@types/react/index.d.ts(3757,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'a' must be of type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>', but here has type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
node_modules/@jupyterlab/apputils/node_modules/@types/react/index.d.ts(3758,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'abbr' must be of type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'.
node_modules/@jupyterlab/apputils/node_modules/@types/react/index.d.ts(3759,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'address' must be of type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'.

I looked it up and apparently yarn does some funny business related to copying the node_modules, see yarnpkg/yarn#1334 and DefinitelyTyped/DefinitelyTyped#18484

My conclusion was I should switch TravisCI to use npm only, instead of yarn. I wanted to get your thoughts on this, and any advice you may have concerning.

@declanvk
Copy link
Contributor Author

declanvk commented Apr 3, 2018

I was working on a fix for a different branch (#157) and I kept getting failures. I tried to reproduce the changes on my machine using npm and I was not able to. I then switched to yarn and the same errors popped up.

I apologize for all the grammar and spelling mistakes.

@declanvk
Copy link
Contributor Author

declanvk commented Apr 3, 2018

@ddavidebor Sadly, npm did not seem to be the perfect solution to my problems.

If you have any advice, please let me know. If not I'll probably close and delete this branch.

@declanvk
Copy link
Contributor Author

@ddavidebor Would it be possible to chat on gitter or some other platform about this?

@ddavidebor
Copy link
Contributor

ddavidebor commented Apr 13, 2018 via email

This adjustment of the sub-node_modules folder is not viable in the long-term. Package dependency versions will change and break this configuration.
@declanvk
Copy link
Contributor Author

declanvk commented Apr 17, 2018

Closing in favour of PR #162

@declanvk declanvk closed this Apr 17, 2018
@declanvk declanvk deleted the remove-travis-yarn branch April 17, 2018 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants