Questions tagged [tslib]

14 questions
12
votes
5 answers

Error: Package exports for tslib do not define a valid '.' target

I literally made no changes to code, and suddenly I woke up to this error one day, backend: internal/modules/cjs/loader.js:454 backend: const e = new Error(`Package exports for '${basePath}' do not define a ` + backend: ^ backend:…
Kumar Abhirup
  • 308
  • 1
  • 4
  • 16
9
votes
1 answer

TypeError: tslib.__spreadArrays is not a function

I am getting the following error in the browser in Ionic 3 when doing ionic serve. TypeError: tslib.__spreadArrays is not a function This is happening after I downgraded to "@ionic/app-scripts": "^3.2.3" from "@ionic/app-scripts": "^3.2.4" because…
Tapas Mukherjee
  • 2,088
  • 1
  • 27
  • 66
4
votes
2 answers

Error: Cannot find module 'tslib' on adminbro tutorial

I'm trying to build a nodejs app using admin bro. They have provided a tutorial for Role Based Access example Here I run these to create a new directory for the app: mkdir my-admin-app cd my-admin-app yarn init -y To install dependencies, I…
chok68
  • 875
  • 9
  • 10
3
votes
1 answer

python - convert pandas._libs.tslibs.offsets.QuarterEnd to integer

I have two dates: a = (pd.to_datetime(20191231, format='%Y%m%d') + pd.offsets.MonthEnd(n=0)).to_period('Q') b = (pd.Timestamp(str(2020) + '-' + str(4 * 3)) + pd.offsets.MonthEnd(n=0)).to_period('Q') I calculated their difference: c = a - b The…
wwj123
  • 365
  • 2
  • 12
1
vote
1 answer

Error: Cannot find module 'tslib' with my own library

First of all, I'm not at all familiar with the typescript configuration file, so it's very likely that the problem comes from there. I just published an npm package, but when I want to use it with simple JavaScript, I get the following error:…
Pioupia
  • 339
  • 2
  • 15
1
vote
0 answers

"default" property is missing from Vue export after upgrading typescript and tslib versions

I am working on a project using typescript 3.7.5, tslib 1.10.0 and vue 2.6.14. Recently we wanted to upgrade typescript and tslib version, to have typescript 4.x and tslib 2.x. I upgraded them to typescript 4.5.2, tslib 2.3.1 and after I replaced my…
irky
  • 141
  • 2
  • 8
1
vote
0 answers

Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed (Qt5 cross-compile)

I cross-compiled Qt5.12.11 for arm without the tslib support, and it was successful. Now, I need to add the tslib support. I have the tslib already cross-compiled for my target architecture. I add the -tslib to my configure in this way, specifying…
harlem
  • 23
  • 1
  • 5
1
vote
1 answer

Uncaught Error: Cannot find module 'tslib' | Updating Angular Project Version 10 to 11

When I updated angular project from 10 to 11 using using angular cli update command , i was not gtetitng any error while compiling but when run on browser our site then its showing error like this. I have installed and uninstalled tslib different…
0
votes
0 answers

Rollupjs emits '"this" has been rewritten to "undefined"'. How can I address this issue?

Running pnpm install && pnpm build on the simple project below is throwing warning "this" has been rewritten to "undefined" Investigating a bit it seems that the code trying to be compiled is coming from tslib. The compiler doesn't know what value…
Shnd
  • 1,846
  • 19
  • 35
0
votes
0 answers

Qt - Restart TSLib input

Is there a way to reload at runtime the plugin/module that manages the touchscreen (TSLib) input of a Qt application? Practically, I need the same thing that is explained here: Reload tslib touch screen calibration. BUT for a Qt5 application (where…
NoobNoob
  • 80
  • 1
  • 9
0
votes
0 answers

Tslib and QT Integration getting raw input instead of applying modules/filters on ts.conf file

I have an embedded linux system with a resistive touchscreen on /dev/input/event0 and a tslib installed. The tslib's tools such ts_calibrate and ts_tools are working perfectly with the modules/filters described in my /etc/ts.conf file. The problem…
JFBravo
  • 45
  • 1
  • 6
0
votes
1 answer

Click and mouse cursor events are inverted when using VNC in my QT application

I am programming a QT application which is deployed to a linux embedded system. It uses the TSLIB for touch screen, and a framebuffer VNC server. When I use the touch screen, it works just fine. However, when I use VNC, the mouse cursor on the VNC…
Samuel
  • 111
  • 1
  • 10
0
votes
1 answer

ModuleNotFoundError: No module named 'pandas.tslib' in darts model time series

I would like to use darts time series model with pandas dataframe. I tried to import below packages but this error message that I can't resolved. My pandas version is 1.3.4 that I can't lowered as suggested in some forums since then I need to lower…
melik
  • 1,268
  • 3
  • 21
  • 42
0
votes
0 answers

How to migrate a library using clarity to Angular 10?

I'm trying to bump Angular version in a mono-repo with several applications and libs. One of those libs and one of those applications are using Clarity framework ng update fails because of clarity depending on tslib v1 when Angular 10 uses v2. Is…
ch4mp
  • 6,622
  • 6
  • 29
  • 49