You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the above missing tslib error when I install omitting devDependencies, but it works fine if dev-deps are included - irrespective of the docker image (node:20-bookworm in my case)
I also believe tslib should be added to the dependencies. When I used npm I had no problems, but after switching to yarn:
Error: @pulsecron/pulse tried to access tslib, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: tslib
Required by: @pulsecron/pulse@npm:1.6.7 (via C:***\Yarn\Berry\[email protected]\node_modules@pulsecron\pulse\dist)
Description
Scripts using pulse do not start without installed
tslib
package. Instead they crash and show the error message "Error: Cannot find module 'tslib'".To reproduce the error, just do the following in an empty folder:
With an additional
npm install tslib
the script runs without error.Expected behavior
The script should run without error even without explicitely adding
tslib
as dependency.Code example
No response
Additional context
Used versions:
The text was updated successfully, but these errors were encountered: