Closed david238 closed 3 years ago
Ca you please create a reproducible example? Maybe a repo I can clone and test?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi I Sorry for the late reply, I have isolated the issue, it seems to have a conflicting issue with another npm package called 'recordrtc'.
By commenting and uncommenting this line, the error message does not show.
import RecordRTC from 'recordrtc';
RecordRTC package: https://www.npmjs.com/package/recordrtc
Not sure if that would help out? I will try to create a new project and replicate the issue in the next days. Sorry about that, been taken up a bit these days.
Thank you David
sorry, i have no idea
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is also actual for me - I get the same error.
TypeError: ActiveXObjectApi is not a constructor [1] at requestWithXmlHttpRequest (/Users/georgecarpow/Documents/znamenica/allslavic-front/allslavic/node_modules/i18next-http-backend/esm/request.js:92:1) [1] at Object.request (/Users/georgecarpow/Documents/znamenica/allslavic-front/build/webpack:/allslavic/node_modules/i18next-http-backend/esm/request.js:146:1) [1] at Backend.loadUrl (/Users/georgecarpow/Documents/znamenica/allslavic-front/build/webpack:/allslavic/node_modules/i18next-http-backend/esm/index.js:108:1) [1] at /Users/georgecarpow/Documents/znamenica/allslavic-front/build/webpack:/allslavic/node_modules/i18next-http-backend/esm/index.js:100:1 [1] at runNextTicks (internal/process/task_queues.js:58:5) [1] at listOnTimeout (internal/timers.js:523:9) [1] at processTimers (internal/timers.js:497:7)
Problem exists on MacOS and Windows
a reproducible example would help
https://github.com/znamenica/allslavic-front/tree/0.1.1 - here is the example. Including package via import causes the error whenever the backend i18n loading option is using or not.
can you try with v1.4.1 ?
Yes, the error has gone, thanks.
🐛 Bug Report
Error in console: TypeError: ActiveXObjectApi is not a constructor at requestWithXmlHttpRequest (/Users/david/werweev2-dev/node_modules/i18next-http-backend/cjs/request.js:105:11) at Object.request (/Users/david/werweev2-dev/node_modules/i18next-http-backend/cjs/request.js:159:12) at Backend.loadUrl (/Users/david/werweev2-dev/node_modules/i18next-http-backend/cjs/index.js:115:20) at Backend.read (/Users/david/werweev2-dev/node_modules/i18next-http-backend/cjs/index.js:108:12) at Connector.read (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:1669:34) at Connector.loadOne (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:1727:12) at /Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:1703:16 at Array.forEach ()
at Connector.prepareLoading (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:1702:21)
at Connector.load (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:1709:12)
at I18n.loadResources (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:2071:40)
at setLng (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:2167:16)
at I18n.changeLanguage (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:2177:9)
at Timeout.load [as _onTimeout] (/Users/david/werweev2-dev/node_modules/i18next/dist/cjs/i18next.js:2021:16)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
To Reproduce
I have an i18n.js file that is as follows:
express.js ( I am doing server-rendering) as follows:
not sure if that is related to the error.
Expected behavior
Do you know how can I get rid of this typeError message in the console?
Your Environment
Version tried: "i18next-http-backend": "^1.2.1", & "i18next-http-backend": "^1.2.6". "i18next": "^20.2.1", "i18next-browser-languagedetector": "^6.1.0", "i18next-http-backend": "^1.2.6",
runtime version:
"node": "14.16.0", "npm": "6.14.4"
os: Mac OS Big Sur v11.1