pa11y | Pa11y is your automated accessibility testing pal | Testing library

 by   pa11y JavaScript Version: 4.0.1 License: LGPL-3.0

kandi X-RAY | pa11y Summary

pa11y is a JavaScript library typically used in Testing, Selenium applications. pa11y has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has medium support. You can install using 'npm i pa11y' or download it from GitHub, npm.
Pa11y is your automated accessibility testing pal. It runs accessibility tests on your pages via the command line or Node.js, so you can automate your testing process.
    Support
      Quality
        Security
          License
            Reuse
            Support
              Quality
                Security
                  License
                    Reuse

                      kandi-support Support

                        summary
                        pa11y has a medium active ecosystem.
                        summary
                        It has 3575 star(s) with 246 fork(s). There are 222 watchers for this library.
                        summary
                        It had no major release in the last 12 months.
                        summary
                        There are 43 open issues and 313 have been closed. On average issues are closed in 294 days. There are 5 open pull requests and 0 closed requests.
                        summary
                        It has a neutral sentiment in the developer community.
                        summary
                        The latest version of pa11y is 4.0.1
                        pa11y Support
                          Best in #Testing
                            Average in #Testing
                            pa11y Support
                              Best in #Testing
                                Average in #Testing

                                  kandi-Quality Quality

                                    summary
                                    pa11y has 0 bugs and 0 code smells.
                                    pa11y Quality
                                      Best in #Testing
                                        Average in #Testing
                                        pa11y Quality
                                          Best in #Testing
                                            Average in #Testing

                                              kandi-Security Security

                                                summary
                                                pa11y has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
                                                summary
                                                pa11y code analysis shows 0 unresolved vulnerabilities.
                                                summary
                                                There are 0 security hotspots that need review.
                                                pa11y Security
                                                  Best in #Testing
                                                    Average in #Testing
                                                    pa11y Security
                                                      Best in #Testing
                                                        Average in #Testing

                                                          kandi-License License

                                                            summary
                                                            pa11y is licensed under the LGPL-3.0 License. This license is Weak Copyleft.
                                                            summary
                                                            Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.
                                                            pa11y License
                                                              Best in #Testing
                                                                Average in #Testing
                                                                pa11y License
                                                                  Best in #Testing
                                                                    Average in #Testing

                                                                      kandi-Reuse Reuse

                                                                        summary
                                                                        pa11y releases are not available. You will need to build from source code and install.
                                                                        summary
                                                                        Deployable package is available in npm.
                                                                        summary
                                                                        Installation instructions are not available. Examples and code snippets are available.
                                                                        summary
                                                                        pa11y saves you 148 person hours of effort in developing the same functionality from scratch.
                                                                        summary
                                                                        It has 487 lines of code, 0 functions and 99 files.
                                                                        summary
                                                                        It has low code complexity. Code complexity directly impacts maintainability of the code.
                                                                        pa11y Reuse
                                                                          Best in #Testing
                                                                            Average in #Testing
                                                                            pa11y Reuse
                                                                              Best in #Testing
                                                                                Average in #Testing
                                                                                  Top functions reviewed by kandi - BETA
                                                                                  kandi has reviewed pa11y and discovered the below as its top functions. This is intended to give you an instant insight into pa11y implemented functionality, and help decide if they suit your requirements.
                                                                                  • Run Pa11y - specific issues .
                                                                                    • Configures the program .
                                                                                      • Interpolate the request headers for the page
                                                                                        • Run Pa11ycode on a page
                                                                                          • Detect HTML files .
                                                                                            • Load a reporter .
                                                                                              • Run Pa11y test results .
                                                                                                • Process program options
                                                                                                  • Run example example .
                                                                                                    • Injects the tests to run scripts .
                                                                                                      Get all kandi verified functions for this library.
                                                                                                      Get all kandi verified functions for this library.

                                                                                                      pa11y Key Features

                                                                                                      Pa11y is your automated accessibility testing pal

                                                                                                      pa11y Examples and Code Snippets

                                                                                                      Help with Prison Visits (HwPV) External/Public,Tests
                                                                                                      JavaScriptdot imgLines of Code : 13dot imgLicense : Permissive (MIT)
                                                                                                      copy iconCopy
                                                                                                      
                                                                                                                                          # Make sure the app is running npm start # Run the e2e tests headless npm run test-e2e # Or, open up the Cypress UI to run tests npm run test-e2e-ui
                                                                                                      npm install -g pa11y # requires existing claim data in local running environment so screens load correctly # will generate a number of HTML reports with WCAG2AAA accessibility issues for pages # usage: ./run-pa11y encryptedReferenceId claimId encryptedReference submittedDob submittedEncryptedReference submittedClaimId ./run-pa11y.sh 3d431e08aea55ea70faa 17 49411309bdb15b 1975-11-22 4e410d0bcda059 16
                                                                                                      Run tests
                                                                                                      JavaScriptdot imgLines of Code : 12dot imgLicense : Permissive (MIT)
                                                                                                      copy iconCopy
                                                                                                      
                                                                                                                                          # run unit tests npm test # run linting npm run lint # run end-to-end tests npm run cypress npm run cypress:cli # these won't open a browser # run accessibility tests npm run pa11y
                                                                                                      Pa11y CI HTML Reporter,Usage
                                                                                                      JavaScriptdot imgLines of Code : 10dot imgLicense : Permissive (MIT License)
                                                                                                      copy iconCopy
                                                                                                      
                                                                                                                                          Usage: pa11y-ci-reporter-html [options] Options: -V, --version output the version number -s, --source  the path to the pa11y-ci JSON input file (default: "./pa11y-ci-results.json") -d, --destination  the path to the output directory for HTML report files (default: "./pa11y-ci-report") --include-zero-issues include detailed page reports for pages with no pa11y issues -h, --help output usage information
                                                                                                      pa11y-ci --json > pa11y-ci-results.json pa11y-ci-reporter-html
                                                                                                      Community Discussions

                                                                                                      Trending Discussions on pa11y

                                                                                                      pa11y json configuration file for actions : https://github.com/pa11y/pa11y#actions
                                                                                                      chevron right
                                                                                                      cy.lighthouse and cy.pa11y not working in files like .spec.ts or .ts
                                                                                                      chevron right
                                                                                                      pa11y-ci: How to specify filename for default html report?
                                                                                                      chevron right
                                                                                                      How to import plugins in Cypress 9 with Node 16?
                                                                                                      chevron right
                                                                                                      Angular 11 is not running ngcc
                                                                                                      chevron right

                                                                                                      QUESTION

                                                                                                      pa11y json configuration file for actions : https://github.com/pa11y/pa11y#actions
                                                                                                      Asked 2022-Feb-03 at 14:29

                                                                                                      We use jenkins CI tool for automated accessibility testing provided by pa11y. As such i use the below Jenkinsfile to run the tests.

                                                                                                      node('mypod') {
                                                                                                      
                                                                                                      container('centos') {
                                                                                                      
                                                                                                      def NODEJS_HOME
                                                                                                      env.NODEJS_HOME = "${tool 'Node-12.0.0'}"
                                                                                                      env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}"
                                                                                                      sh "'${env.NODEJS_HOME}'/bin/node --version"
                                                                                                      sh "npm install -g pa11y --unsafe-perm"
                                                                                                      sh "pa11y -V"
                                                                                                      
                                                                                                      sh '''curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
                                                                                                            yum -y install ./google-chrome-stable_current_*.rpm
                                                                                                            yum -y install libXScrnSaver
                                                                                                            yum -y install atk java-atk-wrapper at-spi2-atk gtk3 libXt'''
                                                                                                      
                                                                                                      withCredentials([file(credentialsId: '***', variable: 'pa11yconfig')]) {
                                                                                                          
                                                                                                      sh "cat $pa11yconfig > config.json"
                                                                                                      
                                                                                                      sh "pa11y --config config.json --ignore WCAG2AA.Principle3.Guideline3_2.3_2_2.H32.2 --ignore WCAG2AA.Principle1.Guideline1_4.1_4_3.G145.Fail --ignore WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail --threshold 6 --reporter cli https://$URL > results.json"
                                                                                                      
                                                                                                      }     
                                                                                                      }
                                                                                                      }

                                                                                                      It installs the necessary things to run pa11y against the specified URL on linux based node. Windows are too much of a hassle so we use linux for this implementaion. Also to make this work for the browser to launch we use the below config.json file for pa11y to work.

                                                                                                      {
                                                                                                          "chromeLaunchConfig": {
                                                                                                              "args": [
                                                                                                                  "--no-sandbox",
                                                                                                                  "--disable-setuid-sandbox",
                                                                                                                  "--disable-dev-shm-usage"
                                                                                                              ]
                                                                                                          }
                                                                                                      }

                                                                                                      All of this works like a charm for any URl we provide. Now we would like to have some advanced configurations for lets say test if login works or filling a form on a webpage of a site so may be use Actions provided by pa11y. How should i merge Actions code into this json configuration file to achieve that. Actions is documented under :- https://github.com/pa11y/pa11y#actions

                                                                                                      Any help or suggestions here would be greatly appreciated!

                                                                                                      ANSWER

                                                                                                      Answered 2022-Feb-03 at 14:29

                                                                                                      Something like this:

                                                                                                          "chromeLaunchConfig": {
                                                                                                              "args": [
                                                                                                                  "--no-sandbox",
                                                                                                                  "--disable-setuid-sandbox",
                                                                                                                  "--disable-dev-shm-usage"
                                                                                                              ],
                                                                                                          },
                                                                                                          "reporter": "cli",
                                                                                                          "threshold": 6,
                                                                                                          "ignore:" [
                                                                                                              'WCAG2AA.Principle3.Guideline3_2.3_2_2.H32.2',
                                                                                                              'WCAG2AA.Principle1.Guideline1_4.1_4_3.G145.Fail',
                                                                                                              'WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail'
                                                                                                          ]
                                                                                                          "actions": [
                                                                                                              "navigate to $URL",
                                                                                                              "wait for $ThingToHappen"
                                                                                                          ]
                                                                                                      }
                                                                                                      

                                                                                                      (I also included options that you're currently passing to the CLI directly, in case that's of interest to you)

                                                                                                      Source https://stackoverflow.com/questions/70962437

                                                                                                      QUESTION

                                                                                                      cy.lighthouse and cy.pa11y not working in files like .spec.ts or .ts
                                                                                                      Asked 2022-Jan-31 at 07:55

                                                                                                      I wanted to make a lighthouse test using cypress-audit, but after doing everything they said on https://www.npmjs.com/package/cypress-audit it doesn't work. I can use "cy.lighthouse()" in the cypress/support/commands.js, but not in files with extension like .spec.ts or .ts ( i get "Property 'lighthouse' does not exist on type 'cy & EventEmitter'.ts(2339)" error ). I already tried to find any solutions on the internet, but nothing worked.

                                                                                                      package.json:

                                                                                                      {
                                                                                                        "name": "XXXX",
                                                                                                        "version": "0.0.1",
                                                                                                        "description": "",
                                                                                                        "scripts": {
                                                                                                          "start_cypress": "npx cypress open",
                                                                                                          "install_dependencies": "npm install"
                                                                                                        },
                                                                                                        "author": "",
                                                                                                        "devDependencies": {
                                                                                                          "babel-core": "^6.26.0",
                                                                                                          "babel-loader": "^7.1.2",
                                                                                                          "babel-preset-env": "^1.6.0",
                                                                                                          "babel-preset-stage-3": "^6.24.1",
                                                                                                          "cross-env": "^5.0.5",
                                                                                                          "cypress": "^9.3.1",
                                                                                                          "cypress-audit": "^1.1.0",
                                                                                                          "typescript": "^4.5.4",
                                                                                                          "webpack": "^5.66.0",
                                                                                                          "webpack-dev-server": "^4.7.3"
                                                                                                        }
                                                                                                      }
                                                                                                      

                                                                                                      cypress/plugins/index.js:

                                                                                                      /// 
                                                                                                      
                                                                                                      /**
                                                                                                       * @type {Cypress.PluginConfig}
                                                                                                       */
                                                                                                      
                                                                                                      const { lighthouse, pa11y, prepareAudit } = require("cypress-audit");
                                                                                                      
                                                                                                      module.exports = (on, config) => {
                                                                                                        on("before:browser:launch", (browser = {}, launchOptions) => {
                                                                                                          prepareAudit(launchOptions);
                                                                                                        });
                                                                                                      
                                                                                                        on("task", {
                                                                                                          lighthouse: lighthouse(), // calling the function is important
                                                                                                          pa11y: pa11y(), // calling the function is important
                                                                                                        });
                                                                                                      }
                                                                                                      

                                                                                                      cypress/support/commands.js:

                                                                                                      import 'cypress-audit/commands';
                                                                                                      

                                                                                                      CypressAudit.spec.ts:

                                                                                                      describe('Audits', () => {
                                                                                                          beforeEach(() => {
                                                                                                              cy.visit('/');
                                                                                                          });
                                                                                                      
                                                                                                          it("should pass the audits", function () {
                                                                                                              cy.lighthouse();
                                                                                                              cy.pa11y();
                                                                                                          });
                                                                                                      });
                                                                                                      

                                                                                                      ANSWER

                                                                                                      Answered 2022-Jan-26 at 11:12

                                                                                                      There are some type defs in the cypress-audit package that should be kicking in. Perhaps it's the mixture of ts and js files?

                                                                                                      Try adding these to /cypress/support/index.ts

                                                                                                        interface Chainable {
                                                                                                          /**
                                                                                                           * Runs a lighthouse audit
                                                                                                           * @example
                                                                                                           * cy.lighthouse(thresholds,opts,config)
                                                                                                           */
                                                                                                          lighthouse(thresholds?: LighthouseThresholds, opts?: any, config?: any);
                                                                                                      
                                                                                                          /**
                                                                                                           * Runs a pa11y audit
                                                                                                           * @example
                                                                                                           * cy.pa11y(opts)
                                                                                                           */
                                                                                                          pa11y(opts?: Options);
                                                                                                      
                                                                                                        }
                                                                                                      

                                                                                                      Source https://stackoverflow.com/questions/70862103

                                                                                                      QUESTION

                                                                                                      pa11y-ci: How to specify filename for default html report?
                                                                                                      Asked 2021-Dec-02 at 11:50

                                                                                                      I have Pa11y working well with the Json output, but I wanted to provide a HTML report for clients. We do manual WCAG checks right now and are migrating to a more automated approach. I've installed the Pa11y HTML reporter, and it seems to want to produce the output into the CI. It's a better output but how do I specify the filename for the html file such as myreport.html?

                                                                                                      Here is my config file:

                                                                                                      {
                                                                                                          "defaults": {
                                                                                                              "reporters": [
                                                                                                                  "pa11y-reporter-html"
                                                                                                              ],
                                                                                                              "timeout": 10000,
                                                                                                              "standard": "WCAG2A",
                                                                                                              "viewport": {
                                                                                                                  "width": 800,
                                                                                                                  "height": 600
                                                                                                              }
                                                                                                          }
                                                                                                      }

                                                                                                      Here is how I'm calling it from the command line:

                                                                                                      pa11y-ci --sitemap https://oursite.co.uk/sitemaps/sitemap.xml

                                                                                                      Also, how do I add the sitemap to the config file? When I add it in like this it seems to ignore it:

                                                                                                      "sitemap:":"https://oursite.co.uk/sitemaps/sitemap.xml",

                                                                                                      ANSWER

                                                                                                      Answered 2021-Dec-02 at 11:50

                                                                                                      The solution was to use:

                                                                                                      pa11y-ci-reporter-html -s results.json

                                                                                                      The json is the separate .json output from pally-ci generated separately.

                                                                                                      The ci-reporter is installed gloablly using:

                                                                                                      > npm install -g pa11y-ci-reporter-html

                                                                                                      So you have to keep pa11y-ci set to json mode for this to work.

                                                                                                      Source https://stackoverflow.com/questions/70184731

                                                                                                      QUESTION

                                                                                                      How to import plugins in Cypress 9 with Node 16?
                                                                                                      Asked 2021-Nov-20 at 08:37

                                                                                                      I'm struggling trying to import external libraries to the plugin file.
                                                                                                      If I do
                                                                                                      const clipboardy = require('clipboardy')
                                                                                                      

                                                                                                      it says "Error [ERR_REQUIRE_ESM]: require() of ES Module /[...]/e2e/node_modules/clipboardy/index.js from /[...]/e2e/cypress/plugins/index.js not supported.". I tried also with

                                                                                                      import clipboardy from 'clipboardy'
                                                                                                      

                                                                                                      but this is still not working. I really don't understand how to solve.
                                                                                                      Can you please help me? I'm on node 16.10 with cypress 9.0.0 Thanks in advance

                                                                                                      EDIT: the plugin file

                                                                                                      const clipboardy = require("clipboardy");
                                                                                                      const csv = require("node-xlsx").default;
                                                                                                      const fs = require("fs");
                                                                                                      
                                                                                                      const { lighthouse, pa11y, prepareAudit } = require("cypress-audit");
                                                                                                      
                                                                                                      module.exports = (on, config) => {
                                                                                                        on("task", {
                                                                                                          parseXlsx({ filePath }) {
                                                                                                            return new Promise((resolve, reject) => {
                                                                                                              try {
                                                                                                                const jsonData = csv.parse(fs.readFileSync(filePath));
                                                                                                                resolve(jsonData);
                                                                                                              } catch (e) {
                                                                                                                reject(e);
                                                                                                              }
                                                                                                            });
                                                                                                          },
                                                                                                      
                                                                                                          getClipboard() {
                                                                                                            return clipboardy.readSync();
                                                                                                          },
                                                                                                      
                                                                                                          lighthouse: lighthouse(lighthouseReport => {
                                                                                                            const categories = lighthouseReport.lhr.categories;
                                                                                                      
                                                                                                            const audits = lighthouseReport.lhr.audits;
                                                                                                      
                                                                                                            const formattedAudit = Object.keys(audits).reduce(
                                                                                                              (metrics, curr) => ({
                                                                                                                ...metrics,
                                                                                                                [curr]: audits[curr].numericValue
                                                                                                              }),
                                                                                                              {}
                                                                                                            );
                                                                                                      
                                                                                                            const formattedCategories = Object.keys(categories).reduce(
                                                                                                              (metrics, curr) => ({
                                                                                                                ...metrics,
                                                                                                                [curr]: categories[curr].score * 100
                                                                                                              }),
                                                                                                              {}
                                                                                                            );
                                                                                                      
                                                                                                            const results = {
                                                                                                              url: lighthouseReport.lhr.requestedUrl,
                                                                                                              ...formattedCategories
                                                                                                            };
                                                                                                      
                                                                                                            console.log("Lighthouse results: [");
                                                                                                            console.log(results);
                                                                                                            console.log("]");
                                                                                                      
                                                                                                            //      fs.writeJSONSync("../results/audit.json", results);
                                                                                                            //      fs.writeFileSync(
                                                                                                            //        "audit.json",
                                                                                                            //        Buffer.from(JSON.stringify(results), "utf8")
                                                                                                            //      );
                                                                                                          }),
                                                                                                      
                                                                                                          pa11y: pa11y(pa11yReport => {
                                                                                                            console.log("pa11y results: [");
                                                                                                            console.log(pa11yReport);
                                                                                                            console.log("]");
                                                                                                          })
                                                                                                        });
                                                                                                      
                                                                                                        on("before:browser:launch", (browser, launchOptions) => {
                                                                                                          prepareAudit(launchOptions);
                                                                                                      
                                                                                                          if (browser.name === "chromium") {
                                                                                                            launchOptions.args.push(
                                                                                                              "--disable-features=CrossSiteDocumentBlockingIfIsolating,CrossSiteDocumentBlockingAlways,IsolateOrigins,site-per-process"
                                                                                                            );
                                                                                                            launchOptions.args.push(
                                                                                                              "--load-extension=cypress/extensions/Ignore-X-Frame-headers_v1.1"
                                                                                                            );
                                                                                                            launchOptions.args.push("--disable-dev-shm-usage");
                                                                                                      
                                                                                                            return launchOptions;
                                                                                                          }
                                                                                                      
                                                                                                          return launchOptions;
                                                                                                        });
                                                                                                      
                                                                                                        return config;
                                                                                                      };
                                                                                                      

                                                                                                      ANSWER

                                                                                                      Answered 2021-Nov-20 at 08:37

                                                                                                      The problem was related ti clipboardy, which in version 3 became a ES Only modulo, not compatibile with Cypress. Downgrading to v2.3 solved the issue

                                                                                                      Source https://stackoverflow.com/questions/69944606

                                                                                                      QUESTION

                                                                                                      Angular 11 is not running ngcc
                                                                                                      Asked 2021-Apr-19 at 19:46

                                                                                                      I have an old Angular application, which I have upgraded from Angular 9 to Angular 11. (It had many stable upgrades throughout the years, starting from Angular 2)

                                                                                                      My problem is, that the ngcc is not running ng build:

                                                                                                      $ ng build
                                                                                                          'node-sass' usage is deprecated and will be removed in a future major version. To opt-out of the deprecated behaviour and start using 'sass' uninstall 'node-sass'.
                                                                                                      ✔ Browser application bundle generation complete.
                                                                                                      
                                                                                                      Error: node_modules/ngx-device-detector/index.d.ts:3:23 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).
                                                                                                      
                                                                                                      3     static forRoot(): ModuleWithProviders;
                                                                                                                              ~~~~~~~~~~~~~~~~~~~
                                                                                                      node_modules/@ngx-translate/core/public_api.d.ts:22:53 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).
                                                                                                      
                                                                                                      22     static forRoot(config?: TranslateModuleConfig): ModuleWithProviders;
                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~
                                                                                                      node_modules/@ngx-translate/core/public_api.d.ts:26:54 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).
                                                                                                      
                                                                                                      26     static forChild(config?: TranslateModuleConfig): ModuleWithProviders;
                                                                                                                                                              ~~~~~~~~~~~~~~~~~~~
                                                                                                      

                                                                                                      I really need it, as you can see that some of the packages has old dependency issues which ngcc can solve. I thought that as we are using Ivy, running it will be part of the build by default. I was able to run the command manually as npx ngcc:

                                                                                                      forest@forest:~/....$ npx ngcc
                                                                                                      Compiling @angular/core : fesm2015 as esm2015
                                                                                                      Compiling @angular/animations : fesm2015 as esm2015
                                                                                                      Compiling @angular/compiler/testing : fesm2015 as esm2015
                                                                                                      Compiling @angular/animations : esm2015 as esm2015
                                                                                                      Compiling @angular/animations : main as umd
                                                                                                      Compiling @angular/compiler/testing : esm2015 as esm2015
                                                                                                      Compiling @angular/compiler/testing : main as umd
                                                                                                      Compiling @angular/common : fesm2015 as esm2015
                                                                                                      Compiling @ngx-translate/core : fesm2015 as esm2015
                                                                                                      Compiling @ngx-translate/core : fesm2015 as esm2015
                                                                                                      Compiling @angular/platform-browser : fesm2015 as esm2015
                                                                                                      Compiling @angular/common/http : fesm2015 as esm2015
                                                                                                      Compiling @angular/forms : fesm2015 as esm2015
                                                                                                      
                                                                                                      ...
                                                                                                      
                                                                                                      

                                                                                                      and after that the app runs just as intended:

                                                                                                      ng build
                                                                                                          'node-sass' usage is deprecated and will be removed in a future major version. To opt-out of the deprecated behaviour and start using 'sass' uninstall 'node-sass'.
                                                                                                      ✔ Browser application bundle generation complete.
                                                                                                      ✔ Copying assets complete.
                                                                                                      ✔ Index html generation complete.
                                                                                                                                                                                                                                                              
                                                                                                      Initial Chunk Files | Names         |      Size                                                                                                         
                                                                                                      vendor.js           | vendor        |  14.23 MB                                                                                                         
                                                                                                      main.js             | main          |   4.31 MB                                                                                                         
                                                                                                      styles.css          | styles        | 637.39 kB
                                                                                                      polyfills-es5.js    | polyfills-es5 | 583.94 kB
                                                                                                      polyfills.js        | polyfills     | 148.32 kB
                                                                                                      runtime.js          | runtime       |   6.15 kB
                                                                                                      
                                                                                                                          | Initial Total |  19.88 MB
                                                                                                      
                                                                                                      Build at: 2021-01-26T13:06:31.502Z - Hash: 2340989d60fecfe588df - ....
                                                                                                      

                                                                                                      Something might be blocking it, but I cannot find the root cause. Any ideas what can be the problem?

                                                                                                      My Angular version:

                                                                                                      $ ng version
                                                                                                      
                                                                                                           _                      _                 ____ _     ___
                                                                                                          / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
                                                                                                         / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
                                                                                                        / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
                                                                                                       /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                                                                                                                      |___/
                                                                                                          
                                                                                                      
                                                                                                      Angular CLI: 11.1.1
                                                                                                      Node: 12.3.1
                                                                                                      OS: linux x64
                                                                                                      
                                                                                                      Angular: 11.1.0
                                                                                                      ... animations, common, compiler, compiler-cli, core, forms
                                                                                                      ... language-service, platform-browser, platform-browser-dynamic
                                                                                                      ... router
                                                                                                      Ivy Workspace: Yes
                                                                                                      
                                                                                                      Package                         Version
                                                                                                      ---------------------------------------------------------
                                                                                                      @angular-devkit/architect       0.1101.1
                                                                                                      @angular-devkit/build-angular   0.1101.1
                                                                                                      @angular-devkit/core            8.3.28
                                                                                                      @angular-devkit/schematics      8.3.28
                                                                                                      @angular/cli                    11.1.1
                                                                                                      @angular/http                   7.2.16
                                                                                                      @schematics/angular             8.3.28
                                                                                                      @schematics/update              0.803.28
                                                                                                      rxjs                            6.6.0
                                                                                                      typescript                      4.0.5
                                                                                                      webpack                         4.43.0
                                                                                                      
                                                                                                      

                                                                                                      tsconfig.json:

                                                                                                      {
                                                                                                        "compileOnSave": false,
                                                                                                        "compilerOptions": {
                                                                                                          "baseUrl": "./",
                                                                                                          "module": "esnext",
                                                                                                          "outDir": "./dist/out-tsc",
                                                                                                          "sourceMap": true,
                                                                                                          "declaration": false,
                                                                                                          "moduleResolution": "node",
                                                                                                          "emitDecoratorMetadata": true,
                                                                                                          "experimentalDecorators": true,
                                                                                                          "allowSyntheticDefaultImports": true,
                                                                                                          "target": "es5",
                                                                                                          "typeRoots": ["node_modules/@types"],
                                                                                                          "lib": ["es2017", "dom"],
                                                                                                        }
                                                                                                      }
                                                                                                      

                                                                                                      package.json:

                                                                                                      {
                                                                                                        "name": "eets-frontend",
                                                                                                        "version": "1.8.0",
                                                                                                        "scripts": {
                                                                                                          "ng": "ng",
                                                                                                          "start": "ng serve",
                                                                                                        },
                                                                                                      
                                                                                                        "dependencies": {
                                                                                                          "@angular/animations": "^11.1.0",
                                                                                                          "@angular/common": "^11.1.0",
                                                                                                          "@angular/compiler": "^11.1.0",
                                                                                                          "@angular/core": "^11.1.0",
                                                                                                          "@angular/forms": "^11.1.0",
                                                                                                          "@angular/http": "^7.2.16",
                                                                                                          "@angular/platform-browser": "^11.1.0",
                                                                                                          "@angular/platform-browser-dynamic": "^11.1.0",
                                                                                                          "@angular/router": "^11.1.0",
                                                                                                        ...
                                                                                                          "tslib": "^1.10.0",
                                                                                                          "zone.js": "~0.10.2"
                                                                                                        },
                                                                                                        "devDependencies": {
                                                                                                          "@angular-devkit/build-angular": "^0.1101.1",
                                                                                                          "@angular/cli": "^11.1.1",
                                                                                                          "@angular/compiler-cli": "^11.1.0",
                                                                                                          "@angular/language-service": "^11.1.0",
                                                                                                          "@babel/core": "^7",
                                                                                                          "@babel/preset-env": "latest",
                                                                                                          "@commitlint/cli": "^8.3",
                                                                                                          "@commitlint/config-angular": "latest",
                                                                                                          "@cypress/code-coverage": "^1.1",
                                                                                                          "@cypress/webpack-preprocessor": "^4.1",
                                                                                                          "@istanbuljs/nyc-config-typescript": "^1",
                                                                                                          "@types/crypto-js": "^3.1.44",
                                                                                                          "@types/file-saver": "^2.0.1",
                                                                                                          "@types/jasmine": "^3.5.8",
                                                                                                          "@types/jasminewd2": "~2.0.8",
                                                                                                          "@types/jszip": "^3.1.7",
                                                                                                          "@types/lodash": "^4.14.149",
                                                                                                          "@types/node": "^12.11.1",
                                                                                                          "audit-ci": "latest",
                                                                                                          "axe-core": "^3.4",
                                                                                                          "babel-loader": "latest",
                                                                                                          "babel-plugin-istanbul": "^6.0",
                                                                                                          "codecov-json-to-lcov": "^1.1.1",
                                                                                                          "codelyzer": "^5.1.2",
                                                                                                          "commitlint-config-jira": "latest",
                                                                                                          "commitlint-plugin-jira-rules": "latest",
                                                                                                          "concurrently": "^5.2.0",
                                                                                                          "cypress": "^4.8.0",
                                                                                                          "cypress-autorecord": "^1.1",
                                                                                                          "cypress-axe": "^0.6",
                                                                                                          "cypress-plugin-snapshots": "^1.2",
                                                                                                          "datalist-polyfill": "^1.24.0",
                                                                                                          "husky": "^4.2.3",
                                                                                                          "istanbul-instrumenter-loader": "^3.0",
                                                                                                          "istanbul-lib-coverage": "^3.0",
                                                                                                          "jasmine-core": "^3.5.0",
                                                                                                          "jasmine-spec-reporter": "~4.2.1",
                                                                                                          "js-base64": "^2.5.2",
                                                                                                          "jsonlint-cli": "^1.0.1",
                                                                                                          "karma": "^5.2.3",
                                                                                                          "karma-chrome-launcher": "~3.1.0",
                                                                                                          "karma-coverage-istanbul-reporter": "^2.1.1",
                                                                                                          "karma-jasmine": "~3.1.1",
                                                                                                          "karma-jasmine-html-reporter": "^1.5.2",
                                                                                                          "koa": "^2.12.0",
                                                                                                          "koa-bodyparser": "^4.3.0",
                                                                                                          "koa-router": "^8.0.8",
                                                                                                          "koa-static": "^5.0.0",
                                                                                                          "lint-staged": "^10.0.8",
                                                                                                          "markdownlint-cli": "^0.22",
                                                                                                          "ngx-build-plus": "^8",
                                                                                                          "node-sass": "^4.14.1",
                                                                                                          "nodemon": "^2.0.4",
                                                                                                          "nyc": "^15.0",
                                                                                                          "pa11y": "^5",
                                                                                                          "prettier": "^2.0.0",
                                                                                                          "protractor": "^7.0.0",
                                                                                                          "protractor-istanbul-plugin": "^2.0.0",
                                                                                                          "source-map-support": "^0.5",
                                                                                                          "stylelint": "^13.2.1",
                                                                                                          "stylelint-config-prettier": "latest",
                                                                                                          "stylelint-config-recommended": "latest",
                                                                                                          "stylelint-config-recommended-scss": "latest",
                                                                                                          "stylelint-scss": "^3.10",
                                                                                                          "ts-loader": "^6.2",
                                                                                                          "ts-node": "^8.6",
                                                                                                          "tslint": "^6.1.0",
                                                                                                          "tslint-config-airbnb": "latest",
                                                                                                          "tslint-config-prettier": "latest",
                                                                                                          "tslint-consistent-codestyle": "latest",
                                                                                                          "typescript": "4.0.5",
                                                                                                          "wait-on": "^5.0.0",
                                                                                                          "webpack": "^4",
                                                                                                          "webpack-bundle-analyzer": "^3.6"
                                                                                                        },
                                                                                                        "resolutions": {
                                                                                                          "js-base64": "2.5.2"
                                                                                                        }
                                                                                                      }
                                                                                                      
                                                                                                      

                                                                                                      ANSWER

                                                                                                      Answered 2021-Feb-03 at 14:10

                                                                                                      My problem was that an another tsconfig file was overwriting the root's definitions, and turned off ivy and ngcc altogether.

                                                                                                      sr5c/tsconfig.app.json:

                                                                                                      {
                                                                                                        "extends": "../tsconfig.json",
                                                                                                        ...
                                                                                                      

                                                                                                      Source https://stackoverflow.com/questions/65901974

                                                                                                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                                                                                                      Vulnerabilities

                                                                                                      No vulnerabilities reported

                                                                                                      Install pa11y

                                                                                                      You can install using 'npm i pa11y' or download it from GitHub, npm.

                                                                                                      Support

                                                                                                      See our Troubleshooting guide to get the answers to common questions about Pa11y, along with some ideas to help you troubleshoot any problems.
                                                                                                      Find more information at:
                                                                                                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                                      Find more libraries
                                                                                                      Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                                      Save this library and start creating your kit
                                                                                                      Install
                                                                                                      Maven
                                                                                                      Gradle
                                                                                                      CLONE
                                                                                                    • HTTPS

                                                                                                      https://github.com/pa11y/pa11y.git

                                                                                                    • CLI

                                                                                                      gh repo clone pa11y/pa11y

                                                                                                    • sshUrl

                                                                                                      git@github.com:pa11y/pa11y.git

                                                                                                    • Share this Page

                                                                                                      share link

                                                                                                      Explore Related Topics

                                                                                                      Consider Popular Testing Libraries

                                                                                                      Try Top Libraries by pa11y

                                                                                                      pa11y-dashboard

                                                                                                      by pa11yJavaScript

                                                                                                      pa11y-ci

                                                                                                      by pa11yJavaScript

                                                                                                      pa11y-webservice

                                                                                                      by pa11yJavaScript

                                                                                                      sidekick

                                                                                                      by pa11yJavaScript

                                                                                                      Compare Testing Libraries with Highest Support

                                                                                                      jest

                                                                                                      by facebook

                                                                                                      cypress

                                                                                                      by cypress-io

                                                                                                      pitest

                                                                                                      by hcoles

                                                                                                      testcafe

                                                                                                      by DevExpress

                                                                                                      dom-testing-library

                                                                                                      by testing-library

                                                                                                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                                      Find more libraries
                                                                                                      Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                                      Save this library and start creating your kit