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.

Cannot read property 'locales' of undefined

See original GitHub issue

CDN 加载文件之后报错 : Uncaught TypeError: Cannot read property 'locales' of undefined

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
dengyongfucommented, May 12, 2016

我也遇到同样的问题,刚开始用bootstarp,最后我发现是引用js文件放置的顺序问题 eg:

<script type="text/javascript" src="<%=basePath %>resources/js/bootstrap/table/bootstrap-table.min.js"></script> <script type="text/javascript" src="<%=basePath %>resources/js/bootstrap/table/bootstrap-table-zh-CN.js"></script>
0reactions
blurstreamcommented, Apr 10, 2018

I am sorry but I can’t understand if this issue is resolved, I checked “Getting started” homepage to get rid of this issue, following inclusions specified there, but I’m still getting Uncaught TypeError: Cannot read property 'locales' of undefined at bootstrap-table-it-IT.min.js:7 at bootstrap-table-it-IT.min.js:7 when I use the following code:

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.12.1/bootstrap-table.min.css"> <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.12.1/bootstrap-table.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.12.1/locale/bootstrap-table-it-IT.min.js"></script> ... I just changed the locale of the project keeping inclusions unaltered
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'locales' of undefined - Stack Overflow
I have that. Cannot read property 'locales' of undefined. error when using select2-rails. It raises somewhere here. fn.select2.locales.ru.
Read more >
kazupon/vue-i18n - Cannot read property 'locale' of undefined
The issue happens when I click a button and it calles vue-router 's push function inside of the click event handler. Then vue-i18n...
Read more >
TypeError: Cannot read property 'locale' of undefined at ...
You'll have to share your code if you want help, because this error says, only that somewhere where you try to take 'locale'...
Read more >
Locale issue. Cannot read property 'replace' of undefined
We have been getting the above error and I am guessing it it because of the locale. What is the best way to...
Read more >
Localization - The "Cannot read property '0' of undefined" error ...
Hello,. I am trying to use the localization with Intl, in my net core 2.2 application with the devextreme 19.1 library.
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