Ticket T636809
Visible to All Users

Globalize library registration issue in Angular CLI 6 project

created 7 years ago

[DevExpress Support Team: CLONED FROM T622636: HTML5 Document Viewer - How to overcome the Globalize library registration issue in Angular CLI project]
i tried the gosha ticket, i updated to angular cli 6 and add into tsconfig.json the path globalize but but show me always the same error:

C#
ERROR in ./node_modules/devexpress-reporting/dx-designer.js Module not found: Error: Can't resolve 'I:\Angular\SednaCloud.UI5\src\node_modules\globalize\dist\globalize' in 'I:\Angular\SednaCloud.UI5\node_modules\devexpress-reporting' ERROR in ./node_modules/devexpress-reporting/node_modules/devextreme/localization/globalize/number.js Module not found: Error: Can't resolve 'I:\Angular\SednaCloud.UI5\src\node_modules\globalize\dist\globalize' in 'I:\Angular\SednaCloud.UI5\node_modules\devexpress-reporting\node_modules\devextreme\localization\globalize' ERROR in ./node_modules/devexpress-reporting/node_modules/devextreme/localization/globalize/core.js Module not found: Error: Can't resolve 'I:\Angular\SednaCloud.UI5\src\node_modules\globalize\dist\globalize' in 'I:\Angular\SednaCloud.UI5\node_modules\devexpress-reporting\node_modules\devextreme\localization\globalize'

UPDATED:
this my tsconfig:

JavaScript
{ "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es5", "typeRoots": [ "node_modules/@types", "jquery", "ej.web.all" ], "lib": [ "es2017", "dom" ], "paths": { "globalize": [ "node_modules/globalize/dist/globalize" ], "globalize/*": [ "node_modules/globalize/dist/globalize/*" ], "cldr": [ "node_modules/cldrjs/dist/cldr" ], "cldr/*": [ "node_modules/cldrjs/dist/cldr/*" ] } } }

but not work the same error

Answers approved by DevExpress Support

created 7 years ago (modified 7 years ago)

i have fixed change directory

"node_modules/globalize/dist/globalize"

to "../node_modules/globalize/dist/globalize"

    Comments (1)
    Vasily (DevExpress Support) 7 years ago

      Hi Bruno,

      I am happy to hear that you have managed to resolve this issue. Thank you for sharing your solution with us.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.