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
The @cubejs-client/ngx package's package.json contains an outdated Angular Package Format (APF) configuration referencing non-existent files or targets. This issue arises after upgrading @cubejs-client/ngx from v1.0.0 to v1.1.2.
The problem appears to be caused by a security-related dependency upgrade where Cube.js maintainers updated all Angular devDependencies from version 12 to version 13. This upgrade changed the output format/structure of the library, rendering it incompatible with the existing APF configuration in the package.json file.
To Reproduce
Steps to reproduce the behavior:
Create an empty angular project
Install cubejs core and cubejs angular client as documented pinning to versions for v1.0.0
Add CubeJS module to the main module just to include cubejs in the output build
Notice the project will be built normally
Upgrade to the cube dependencies to the latest v1.1.2
Notice that the build will fail mentioning that the library cube is pointing to files not included in the export
Error: Module not found: Error: Can't resolve '@cubejs-client/ngx'
An unhandled exception occurred: Failed to resolve entry for package "@cubejs-client/ngx". The package may have incorrect main/module/exports specified in its package.json.
The conflict between these versions suggests that the package.json APF configuration has not been updated to reflect the new structure introduced in v1.1.2.
Version:
v1.1.2
Additional context
The ng-packagr tool automatically generates the correct APF structure during the build process. Any manual modifications to the APF configuration in package.json should be avoided.
The issue likely affects projects using Angular versions compatible with APF v12 or earlier.
Describe the bug
The
@cubejs-client/ngx
package's package.json contains an outdated Angular Package Format (APF) configuration referencing non-existent files or targets. This issue arises after upgrading@cubejs-client/ngx
from v1.0.0 to v1.1.2.The problem appears to be caused by a security-related dependency upgrade where Cube.js maintainers updated all Angular devDependencies from version 12 to version 13. This upgrade changed the output format/structure of the library, rendering it incompatible with the existing APF configuration in the package.json file.
To Reproduce
Steps to reproduce the behavior:
package.json
v1.0.0 Library Output: The output files for v1.0.0 include the expected bundles and file structure:
v1.1.2 Library Output: The output files for v1.1.2 have a different structure:
The conflict between these versions suggests that the package.json APF configuration has not been updated to reflect the new structure introduced in v1.1.2.
Version:
v1.1.2
Additional context
The text was updated successfully, but these errors were encountered: