question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Intl' is not defined. eslint(no-undef)

See original GitHub issue

Intl is treated by eslint as undefined for whatever reason: 'Intl' is not defined. eslint(no-undef) It should not be like that, because Intl is perfectly defined. I had to add it to globals in the config file to avoid Intl being underlined by the editor.

EDIT: It’s a React Native project, created with react-native-cli, if it matters.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
StasDcommented, Oct 31, 2019

Actually, looking at the config file I just posted, this line in particular: extends: '@react-native-community', I’m more and more inclined to think that this question should be addressed to the developers of @react-native-community/eslint-config package… In fact, I already did this: https://github.com/facebook/react-native/issues/27076.

1reaction
StasDcommented, Oct 31, 2019

Will perhaps close this issue here then… Thanks anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint no-undef - js issue with BigCommerce - Stack Overflow
Saying: error 'iFrameResize' is not defined no-undef . If I define it like this: const iFrameResize(). My code no longer works, how do...
Read more >
no-undef - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
TypeError: "x" is not a constructor - JavaScript - MDN Web Docs
The JavaScript exception "is not a constructor" occurs when there was an attempt to use an object or a variable as a constructor,...
Read more >
How To Customize ESLint Rules with an Ejected Create React ...
Projects created using Create React App have linting with ESLint already working ... This code defines the rule for no-undef (no undefined).
Read more >
Overview | Format.JS
If you're supporting browsers that do not have Intl.RelativeTimeFormat (e.g IE11, ... When using the UMD version of React Intl without a module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found