Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049534
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSminorhave not tried2022-06-10 15:002022-06-10 15:03
ReporteradrianromeroView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049534: Errors in console when opening the application story book

DescriptionWhen opening storybook for POS2, the console shows the following errors:

https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/?path=/story/platform-app--show-app [^]

vendors~main.11471469.iframe.bundle.js:2 Unexpected error while loading ./components/SafeboxHistory/SafeboxHistoryPrintButton/stories/SafeboxHistoryPrintButton.stories.jsx: jest is not defined
 ReferenceError: jest is not defined
    at ../../../org.openbravo.pos2/web-jspack/org.openbravo.pos2/src/components/SafeboxHistory/SafeboxHistoryPrintButton/stories/SafeboxHistoryPrintButton.stories.jsx (https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/main.19bd8cd8.iframe.bundle.js:1:1919382 [^])
    at __webpack_require__ (https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/runtime~main.0d092830.iframe.bundle.js:1:1301 [^])
    at webpackContext (https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/main.19bd8cd8.iframe.bundle.js:1:339111 [^])
    at https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/vendors~main.11471469.iframe.bundle.js:2:984958 [^]
    at Array.forEach (<anonymous>)
    at https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/vendors~main.11471469.iframe.bundle.js:2:984910 [^]
    at Array.forEach (<anonymous>)
    at executeLoadable (https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/vendors~main.11471469.iframe.bundle.js:2:984876 [^])
    at executeLoadableForChanges (https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/vendors~main.11471469.iframe.bundle.js:2:985718 [^])
    at Object.getProjectAnnotations [as nextFn] (https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/storybook/vendors~main.11471469.iframe.bundle.js:2:990177 [^])
error @ vendors~main.11471469.iframe.bundle.js:2
main.19bd8cd8.iframe.bundle.js:1 Uncaught (in promise) Error: Cannot find module './org.openbravo.retail.multiupc/web-jspack/org.openbravo.retail.multiupc/src/assets/style/main.scss'
    at main.19bd8cd8.iframe.bundle.js:1:1948
main.19bd8cd8.iframe.bundle.js:1 Uncaught (in promise) Error: Cannot find module './org.openbravo.certification.france/web-jspack/org.openbravo.certification.france/src/assets/style/main.scss'
    at main.19bd8cd8.iframe.bundle.js:1:1948
Steps To ReproduceIn description
Proposed SolutionIn SafeboxHistoryPrintButton.stories.jsx

replace

 const mockPrintSafeboxCashupHistory = jest.fn();

by
 
 const mockPrintSafeboxCashupHistory = () => {};

In org.openbravo.retail.multiupc and org.openbravo.certification.france add a new file src/assets/style/main.scss
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2022-06-10 15:00 adrianromero New Issue
2022-06-10 15:00 adrianromero Assigned To => Retail
2022-06-10 15:00 adrianromero Triggers an Emergency Pack => No
2022-06-10 15:03 adrianromero Proposed Solution updated


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker