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

UnhandledRejection when running tests on node v15 (<- unsupported by karma) #3570

Closed
ekdev2 opened this issue Nov 11, 2020 · 9 comments
Closed

Comments

@ekdev2
Copy link

ekdev2 commented Nov 11, 2020

Hi,

I'm running into the following error when running tests in angular components

karma-server: UnhandledRejection

The issue happens when there is url scss attribute in component scss files

e.g
background: url('image-file-path')

Works fine in lts node

@johnjbarton
Copy link
Contributor

We support LTS versions. Please try 16, we don' test on it yet but we need to.

@mpalourdio
Copy link

I'm hitting the exact same error on exact same conditions (url for fonts in scss file) on node latest (v15), but ok on LTS (v14). I wanted to try on v16, but it looks like there no version at the moment. Am I missing something ? The nodejs website does not reference any of v16, nor my 'n'

$ n 16.0.0

  installing : node-v16.0.0
curl: (22) The requested URL returned error: 404 

  Error: download preflight failed for '16.0.0' (https://nodejs.org/dist/v16.0.0/node-v16.0.0-linux-x64.tar.gz)

@johnjbarton
Copy link
Contributor

Don't use karma on node 15. I can't help you with your node installation.

@mpalourdio
Copy link

Just wanted to help by testing on node 16 (if it exists), nothing more...

@johnjbarton johnjbarton changed the title UnhandledRejection when running tests in latest node (15.1) UnhandledRejection when running tests on node v15 (<- unsupported by karma) Nov 18, 2020
@johnjbarton
Copy link
Contributor

Ok thanks. I misread https://nodejs.org/en/about/releases/. v16 is next year. So use v14

@daviian
Copy link

daviian commented Dec 17, 2020

We experience the same issue with Node v14.15.2 even without the url(). All our tests are not working anymore.

So this should really get a high priority to be fixed.

@sachin1989solanki
Copy link

Don't use karma on node 15. I can't help you with your node installation.

What about node v14.15.2 can karma work with this ?

@Mayur123-mg
Copy link

Don't use karma on node 15. I can't help you with your node installation.

then what tool i use please suggest

@devoto13
Copy link
Collaborator

Closing as duplicate of #3588. See #3588 (comment) for the current recommendation.

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

No branches or pull requests

7 participants