Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating keyed/ui5-webcomponents failed #1800

Open
krausest opened this issue Dec 14, 2024 · 2 comments
Open

Updating keyed/ui5-webcomponents failed #1800

krausest opened this issue Dec 14, 2024 · 2 comments

Comments

@krausest
Copy link
Owner

As in #1789 I'm updating all implementations. Implementations that failed to update are moved in to the broken-frameworks folder.
Here's what I'm trying to update:

 @ui5/webcomponents-base     1.3.1  →  2.5.0
 @ui5/webcomponents-theming  1.3.1  →  2.5.0
 @ui5/webcomponents-tools    1.3.1  →  2.5.0

The build fails with the following build error:

> [email protected] build-prod
> wc-dev build

nps is executing `build` : nps prepare lint build.bundle
nps is executing `prepare` : cross-env UI5_TS=true nps clean prepare.all  copyProps prepare.typescript generateAPI
nps is executing `clean` : rimraf src/generated && rimraf dist && rimraf .port && nps "scope.testPages.clean"
nps is executing `scope.testPages.clean` : rimraf test/pages/scoped
nps is executing `prepare.all` : concurrently "nps build.templates" "nps build.i18n" "nps prepare.styleRelated" "nps build.illustrations"
[1] nps is executing `build.i18n` :
[2] nps is executing `prepare.styleRelated` : nps build.styles build.jsonImports build.jsImports
[1] nps build.i18n exited with code 0
[3] nps is executing `build.illustrations` :
[0] nps is executing `build.templates` : mkdirp src/generated/templates && cross-env UI5_TS=true node "/home/stefan/js-framework-benchmark/frameworks/keyed/ui5-webcomponents/node_modules/@ui5/webcomponents-tools/lib//hbs2ui5/index.js" -d src/ -o src/generated/templates
[3] nps build.illustrations exited with code 0
[0] [Warn] The following templates do not have a corresponging .ts or .d.ts file and won't be type checked:
[0]   -> MainElement.hbs
[0] Templates generated
[0] nps build.templates exited with code 0
[2] nps is executing `build.styles` :
[2] nps is executing `build.jsonImports` :
[2] nps is executing `build.jsImports` : mkdirp src/generated/js-imports && nps build.jsImports.illustrationsLoaders
[2] nps is executing `build.jsImports.illustrationsLoaders` :
[2] nps prepare.styleRelated exited with code 0
nps is executing `copyProps` : node "/home/stefan/js-framework-benchmark/frameworks/keyed/ui5-webcomponents/node_modules/@ui5/webcomponents-tools/lib//copy-and-watch/index.js" --silent "src/i18n/*.properties" dist/
nps is executing `prepare.typescript` : tsc
Version 4.3.5
Syntax:   tsc [options] [file...]

Examples: tsc hello.ts
          tsc --outFile file.js file.ts
          tsc @args.txt
          tsc --build tsconfig.json

Options:
 -h, --help                                         Print this message.
 -w, --watch                                        Watch input files.
 --pretty                                           Stylize errors and messages using color and context (experimental).
 --all                                              Show all compiler options.
 -v, --version                                      Print the compiler's version.
 --init                                             Initializes a TypeScript project and creates a tsconfig.json file.
 -p FILE OR DIRECTORY, --project FILE OR DIRECTORY  Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
 -b, --build                                        Build one or more projects and their dependencies, if out of date
 -t VERSION, --target VERSION                       Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'.
 -m KIND, --module KIND                             Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'.
 --lib                                              Specify library files to be included in the compilation.
                                                      'es5' 'es6' 'es2015' 'es7' 'es2016' 'es2017' 'es2018' 'es2019' 'es2020' 'es2021' 'esnext' 'dom' 'dom.iterable' 'webworker' 'webworker.importscripts' 'webworker.iterable' 'scripthost' 'es2015.core' 'es2015.collection' 'es2015.generator' 'es2015.iterable' 'es2015.promise' 'es2015.proxy' 'es2015.reflect' 'es2015.symbol' 'es2015.symbol.wellknown' 'es2016.array.include' 'es2017.object' 'es2017.sharedmemory' 'es2017.string' 'es2017.intl' 'es2017.typedarrays' 'es2018.asyncgenerator' 'es2018.asynciterable' 'es2018.intl' 'es2018.promise' 'es2018.regexp' 'es2019.array' 'es2019.object' 'es2019.string' 'es2019.symbol' 'es2020.bigint' 'es2020.promise' 'es2020.sharedmemory' 'es2020.string' 'es2020.symbol.wellknown' 'es2020.intl' 'es2021.promise' 'es2021.string' 'es2021.weakref' 'esnext.array' 'esnext.symbol' 'esnext.asynciterable' 'esnext.intl' 'esnext.bigint' 'esnext.string' 'esnext.promise' 'esnext.weakref' 
 --allowJs                                          Allow javascript files to be compiled.
 --jsx KIND                                         Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'.
 -d, --declaration                                  Generates corresponding '.d.ts' file.
 --declarationMap                                   Generates a sourcemap for each corresponding '.d.ts' file.
 --sourceMap                                        Generates corresponding '.map' file.
 --outFile FILE                                     Concatenate and emit output to single file.
 --outDir DIRECTORY                                 Redirect output structure to the directory.
 --removeComments                                   Do not emit comments to output.
 --noEmit                                           Do not emit outputs.
 --strict                                           Enable all strict type-checking options.
 --noImplicitAny                                    Raise error on expressions and declarations with an implied 'any' type.
 --strictNullChecks                                 Enable strict null checks.
 --strictFunctionTypes                              Enable strict checking of function types.
 --strictBindCallApply                              Enable strict 'bind', 'call', and 'apply' methods on functions.
 --strictPropertyInitialization                     Enable strict checking of property initialization in classes.
 --noImplicitThis                                   Raise error on 'this' expressions with an implied 'any' type.
 --alwaysStrict                                     Parse in strict mode and emit "use strict" for each source file.
 --noUnusedLocals                                   Report errors on unused locals.
 --noUnusedParameters                               Report errors on unused parameters.
 --noImplicitReturns                                Report error when not all code paths in function return a value.
 --noFallthroughCasesInSwitch                       Report errors for fallthrough cases in switch statement.
 --types                                            Type declaration files to be included in compilation.
 --esModuleInterop                                  Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
 @<file>                                            Insert command line options and files from a file.
The script called "prepare.typescript" which runs "tsc" failed with exit code 1 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
The script called "prepare" which runs "cross-env UI5_TS=true nps clean prepare.all  copyProps prepare.typescript generateAPI" failed with exit code 1 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
The script called "build" which runs "nps prepare lint build.bundle" failed with exit code 1 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
node:child_process:966
    throw err;
    ^

Error: Command failed: npx nps "build"
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:891:11)
    at Object.execSync (node:child_process:963:15)
    at Object.<anonymous> (/home/stefan/js-framework-benchmark/frameworks/keyed/ui5-webcomponents/node_modules/@ui5/webcomponents-tools/bin/dev.js:16:15)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 323700,
  stdout: null,
  stderr: null
}```
@pskelin Can you take a look at this?
@krausest
Copy link
Owner Author

@pskelin Can you please take a look at this?
Would be great to get an update for non-keyed version too. It's also been moved.

@pskelin
Copy link
Contributor

pskelin commented Jan 6, 2025

sure, I'll check it and provide a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants