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

Rollup warning: this has been rewritten to undefined #59

Open
felipecrs opened this issue Mar 6, 2022 · 0 comments
Open

Rollup warning: this has been rewritten to undefined #59

felipecrs opened this issue Mar 6, 2022 · 0 comments

Comments

@felipecrs
Copy link

felipecrs commented Mar 6, 2022

When running rollup:

(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
node_modules/@formatjs/intl-utils/lib/src/diff.js
1: var __assign = (this && this.__assign) || function () {
                   ^
2:     __assign = Object.assign || function(t) {
3:         for (var s, i = 1, n = arguments.length; i < n; i++) {
...and 1 other occurrence
node_modules/@formatjs/intl-utils/lib/src/resolve-locale.js
1: var __extends = (this && this.__extends) || (function () {
                    ^
2:     var extendStatics = function (d, b) {
3:         extendStatics = Object.setPrototypeOf ||
...and 3 other occurrences

This seems to be caused by the use of @formatjs/intl-utils, which seems to have been deprecated in favor of @formatjs/ecma402-abstract.

I would upgrade it by myself and send a PR, but it seems that the newest version of the library does not provide the selectUnit function any longer. Which I'm not sure how to proceed. I found the following reference, it may help:

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

1 participant