You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "HCTzz (via GitHub)" <gi...@apache.org> on 2025/09/15 02:13:36 UTC

[D] how to preview dashboards in Android webview Chrome 66 [superset]

GitHub user HCTzz created a discussion: how to preview dashboards in Android webview Chrome 66

May I ask how to preview dashboards in Chrome? I tried modifying Babel related configurations in the code, but it didn't work.
Here are the packaging.json and babel.cnfig.js files
**package.json**
{
  "name": "superset",
  "version": "5.0.0",
  "description": "Superset is a data exploration platform designed to be visual, intuitive, and interactive.",
  "keywords": [
    "big",
    "data",
    "exploratory",
    "analysis",
    "react",
    "d3",
    "airbnb",
    "nerds",
    "database",
    "flask"
  ],
  "homepage": "https://superset.apache.org/",
  "bugs": {
    "url": "https://github.com/apache/superset/issues"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/apache/superset.git",
    "directory": "superset-frontend"
  },
  "license": "Apache-2.0",
  "author": {
    "name": "Apache"
  },
  "directories": {
    "doc": "docs",
    "test": "spec"
  },
  "workspaces": [
    "packages/*",
    "plugins/*",
    "src/setup/*"
  ],
  "scripts": {
    "_prettier": "prettier './({src,spec,cypress-base,plugins,packages,.storybook}/**/*{.js,.jsx,.ts,.tsx,.css,.less,.scss,.sass}|package.json)'",
    "build": "cross-env NODE_OPTIONS=--max_old_space_size=2048 NODE_ENV=production BABEL_ENV=\"${BABEL_ENV:=production}\" webpack --color --mode production",
    "build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=2048 NODE_ENV=development webpack --mode=development --color",
    "build-instrumented": "cross-env NODE_ENV=production BABEL_ENV=instrumented webpack --mode=production --color",
    "build-storybook": "storybook build",
    "build-translation": "scripts/po2json.sh",
    "bundle-stats": "cross-env BUNDLE_ANALYZER=true npm run build && npx open-cli ../superset/static/stats/statistics.html",
    "core:cover": "cross-env NODE_ENV=test NODE_OPTIONS=\"--max-old-space-size=2048\" jest --coverage --coverageThreshold='{\"global\":{\"statements\":100,\"branches\":100,\"functions\":100,\"lines\":100}}' --collectCoverageFrom='[\"packages/**/src/**/*.{js,ts}\", \"!packages/superset-ui-demo/**/*\"]' packages",
    "cover": "cross-env NODE_ENV=test NODE_OPTIONS=\"--max-old-space-size=2048\" jest --coverage",
    "dev": "webpack --mode=development --color --watch",
    "dev-server": "cross-env NODE_ENV=development BABEL_ENV=development node --max_old_space_size=2048 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development",
    "eslint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx",
    "format": "npm run _prettier -- --write",
    "lint": "npm run eslint -- . && npm run type",
    "lint-fix": "npm run eslint -- . --fix --quiet",
    "lint-stats": "eslint -f ./scripts/eslint-metrics-uploader.js --ignore-path=.eslintignore --ext .js,.jsx,.ts,.tsx . ",
    "plugins:build": "node ./scripts/build.js",
    "plugins:build-assets": "node ./scripts/copyAssets.js",
    "plugins:build-storybook": "cd packages/superset-ui-demo && npm run build-storybook",
    "plugins:create-conventional-version": "npm run prune && lerna version --conventional-commits --create-release github --no-private --yes --tag-version-prefix=\"plugins-and-packages-v\"",
    "plugins:create-minor-version": "npm run prune && lerna version minor --no-private --yes --tag-version-prefix=\"plugins-and-packages-v\"",
    "plugins:create-patch-version": "npm run prune && lerna version patch --no-private --yes --tag-version-prefix=\"plugins-and-packages-v\"",
    "plugins:publish-all": "npm run prune && npm run plugins:build && lerna publish from-package --force-publish --yes",
    "plugins:release-conventional": "npm run prune && npm run plugins:build && lerna publish --conventional-commits --create-release github --yes",
    "plugins:release-from-tag": "npm run prune && npm run plugins:build && lerna publish from-package --yes",
    "plugins:storybook": "cd packages/superset-ui-demo && npm run storybook",
    "prettier": "npm run _prettier -- --write",
    "prettier-check": "npm run _prettier -- --check",
    "prod": "npm run build",
    "prune": "rm -rf ./{packages,plugins}/*/{node_modules,lib,esm,tsconfig.tsbuildinfo,package-lock.json} ./.temp_cache",
    "storybook": "cross-env NODE_ENV=development BABEL_ENV=development storybook dev -p 6006",
    "tdd": "cross-env NODE_ENV=test NODE_OPTIONS=\"--max-old-space-size=4096\" jest --watch",
    "test": "cross-env NODE_ENV=test NODE_OPTIONS=\"--max-old-space-size=4096\" jest --max-workers=50%",
    "type": "tsc --noEmit",
    "update-maps": "jupyter nbconvert --to notebook --execute --inplace 'plugins/legacy-plugin-chart-country-map/scripts/Country Map GeoJSON Generator.ipynb' -Xfrozen_modules=off",
    "validate-release": "../RELEASING/validate_this_release.sh"
  },
  "browserslist": [
    "chrome >= 30",
    "android >= 4.4",
    "ios >= 8",
    "safari >= 8",
    "firefox >= 30",
    "edge >= 12",
    "> 1%",
    "last 2 versions",
    "not dead"
  ],
  "dependencies": {
    "@ant-design/icons": "^5.2.6",
    "@emotion/cache": "^11.4.0",
    "@emotion/react": "^11.13.3",
    "@emotion/styled": "^11.3.0",
    "@fontsource/fira-code": "^5.0.18",
    "@fontsource/inter": "^5.0.20",
    "@reduxjs/toolkit": "^1.9.3",
    "@rjsf/core": "^5.21.1",
    "@rjsf/utils": "^5.19.3",
    "@rjsf/validator-ajv8": "^5.22.3",
    "@scarf/scarf": "^1.4.0",
    "@superset-ui/chart-controls": "file:./packages/superset-ui-chart-controls",
    "@superset-ui/core": "file:./packages/superset-ui-core",
    "@superset-ui/legacy-plugin-chart-calendar": "file:./plugins/legacy-plugin-chart-calendar",
    "@superset-ui/legacy-plugin-chart-chord": "file:./plugins/legacy-plugin-chart-chord",
    "@superset-ui/legacy-plugin-chart-country-map": "file:./plugins/legacy-plugin-chart-country-map",
    "@superset-ui/legacy-plugin-chart-horizon": "file:./plugins/legacy-plugin-chart-horizon",
    "@superset-ui/legacy-plugin-chart-map-box": "file:./plugins/legacy-plugin-chart-map-box",
    "@superset-ui/legacy-plugin-chart-paired-t-test": "file:./plugins/legacy-plugin-chart-paired-t-test",
    "@superset-ui/legacy-plugin-chart-parallel-coordinates": "file:./plugins/legacy-plugin-chart-parallel-coordinates",
    "@superset-ui/legacy-plugin-chart-partition": "file:./plugins/legacy-plugin-chart-partition",
    "@superset-ui/legacy-plugin-chart-rose": "file:./plugins/legacy-plugin-chart-rose",
    "@superset-ui/legacy-plugin-chart-world-map": "file:./plugins/legacy-plugin-chart-world-map",
    "@superset-ui/legacy-preset-chart-deckgl": "file:./plugins/legacy-preset-chart-deckgl",
    "@superset-ui/legacy-preset-chart-nvd3": "file:./plugins/legacy-preset-chart-nvd3",
    "@superset-ui/plugin-chart-cartodiagram": "file:./plugins/plugin-chart-cartodiagram",
    "@superset-ui/plugin-chart-echarts": "file:./plugins/plugin-chart-echarts",
    "@superset-ui/plugin-chart-handlebars": "file:./plugins/plugin-chart-handlebars",
    "@superset-ui/plugin-chart-mes-table": "file:./plugins/plugin-chart-mes-table",
    "@superset-ui/plugin-chart-pivot-table": "file:./plugins/plugin-chart-pivot-table",
    "@superset-ui/plugin-chart-table": "file:./plugins/plugin-chart-table",
    "@superset-ui/plugin-chart-word-cloud": "file:./plugins/plugin-chart-word-cloud",
    "@superset-ui/src": "file:./src",
    "@superset-ui/switchboard": "file:./packages/superset-ui-switchboard",
    "@types/d3-format": "^3.0.1",
    "@types/d3-time-format": "^4.0.3",
    "@types/exceljs": "^1.3.2",
    "@visx/axis": "^3.8.0",
    "@visx/grid": "^3.5.0",
    "@visx/responsive": "^3.0.0",
    "@visx/scale": "^3.5.0",
    "@visx/tooltip": "^3.0.0",
    "@visx/xychart": "^3.5.1",
    "abortcontroller-polyfill": "^1.7.8",
    "ace-builds": "^1.36.3",
    "ag-grid-community": "32.2.1",
    "ag-grid-react": "32.2.1",
    "antd": "4.10.3",
    "antd-v5": "npm:antd@^5.18.0",
    "bootstrap": "^3.4.1",
    "brace": "^0.11.1",
    "chrono-node": "^2.7.6",
    "classnames": "^2.2.5",
    "core-js": "^3.38.1",
    "d3-color": "^3.1.0",
    "d3-scale": "^2.1.2",
    "dayjs": "^1.11.13",
    "dom-to-image-more": "^3.2.0",
    "dom-to-pdf": "^0.3.2",
    "echarts": "^5.6.0",
    "emotion-rgba": "0.0.12",
    "exceljs": "^4.4.0",
    "fast-glob": "^3.3.2",
    "fs-extra": "^11.2.0",
    "fuse.js": "^7.0.0",
    "geolib": "^2.0.24",
    "geostyler": "^12.0.2",
    "geostyler-data": "^1.0.0",
    "geostyler-openlayers-parser": "^4.3.0",
    "geostyler-style": "^7.5.0",
    "geostyler-wfs-parser": "^2.0.3",
    "googleapis": "^130.0.0",
    "immer": "^10.1.1",
    "interweave": "^13.1.0",
    "jquery": "^3.7.1",
    "js-levenshtein": "^1.1.6",
    "js-yaml-loader": "^1.2.2",
    "json-bigint": "^1.0.0",
    "json-stringify-pretty-compact": "^2.0.0",
    "lodash": "^4.17.21",
    "luxon": "^3.5.0",
    "mapbox-gl": "^2.10.0",
    "markdown-to-jsx": "^7.7.2",
    "match-sorter": "^6.3.4",
    "memoize-one": "^5.2.1",
    "mousetrap": "^1.6.5",
    "mustache": "^4.2.0",
    "nanoid": "^5.0.9",
    "ol": "^7.5.2",
    "polished": "^4.3.1",
    "prop-types": "^15.8.1",
    "query-string": "^6.13.7",
    "rc-trigger": "^5.3.4",
    "re-resizable": "^6.10.1",
    "react": "^17.0.2",
    "react-ace": "^10.1.0",
    "react-checkbox-tree": "^1.8.0",
    "react-color": "^2.13.8",
    "react-diff-viewer-continued": "^3.4.0",
    "react-dnd": "^11.1.3",
    "react-dnd-html5-backend": "^11.1.3",
    "react-dom": "^17.0.2",
    "react-draggable": "^4.4.6",
    "react-fast-marquee": "^1.6.5",
    "react-hot-loader": "^4.13.1",
    "react-intersection-observer": "^9.10.2",
    "react-js-cron": "^2.1.2",
    "react-json-tree": "^0.17.0",
    "react-lines-ellipsis": "^0.15.4",
    "react-loadable": "^5.5.0",
    "react-redux": "^7.2.9",
    "react-resize-detector": "^7.1.2",
    "react-reverse-portal": "^2.1.2",
    "react-router-dom": "^5.3.4",
    "react-search-input": "^0.11.3",
    "react-sortable-hoc": "^2.0.0",
    "react-split": "^2.0.9",
    "react-syntax-highlighter": "^15.4.5",
    "react-table": "^7.8.0",
    "react-transition-group": "^4.4.5",
    "react-ultimate-pagination": "^1.3.2",
    "react-virtualized-auto-sizer": "^1.0.25",
    "react-window": "^1.8.10",
    "redux": "^4.2.1",
    "redux-localstorage": "^0.4.1",
    "redux-thunk": "^2.1.0",
    "redux-undo": "^1.0.0-beta9-9-7",
    "regenerator-runtime": "^0.14.1",
    "rimraf": "^6.0.1",
    "rison": "^0.1.1",
    "scroll-into-view-if-needed": "^3.1.0",
    "simple-zstd": "^1.4.2",
    "tinycolor2": "^1.4.2",
    "urijs": "^1.19.8",
    "use-event-callback": "^0.1.0",
    "use-immer": "^0.9.0",
    "use-query-params": "^1.1.9",
    "yargs": "^17.7.2"
  },
  "devDependencies": {
    "@applitools/eyes-storybook": "^3.50.9",
    "@babel/cli": "^7.27.2",
    "@babel/compat-data": "^7.22.6",
    "@babel/core": "^7.26.0",
    "@babel/eslint-parser": "^7.25.9",
    "@babel/node": "^7.22.6",
    "@babel/plugin-proposal-class-properties": "^7.18.6",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
    "@babel/plugin-proposal-optional-chaining": "^7.21.0",
    "@babel/plugin-proposal-private-methods": "^7.18.6",
    "@babel/plugin-syntax-dynamic-import": "^7.8.3",
    "@babel/plugin-transform-modules-commonjs": "^7.26.3",
    "@babel/plugin-transform-runtime": "^7.25.9",
    "@babel/preset-env": "^7.27.2",
    "@babel/preset-react": "^7.26.3",
    "@babel/preset-typescript": "^7.26.0",
    "@babel/register": "^7.23.7",
    "@babel/runtime": "^7.26.0",
    "@babel/runtime-corejs3": "^7.26.0",
    "@babel/types": "^7.26.5",
    "@cypress/react": "^8.0.2",
    "@emotion/babel-plugin": "^11.13.5",
    "@emotion/jest": "^11.13.0",
    "@hot-loader/react-dom": "^17.0.2",
    "@istanbuljs/nyc-config-typescript": "^1.0.1",
    "@mihkeleidast/storybook-addon-source": "^1.0.1",
    "@storybook/addon-actions": "8.1.11",
    "@storybook/addon-controls": "8.1.11",
    "@storybook/addon-essentials": "8.1.11",
    "@storybook/addon-links": "8.1.11",
    "@storybook/addon-mdx-gfm": "8.1.11",
    "@storybook/components": "8.1.11",
    "@storybook/preview-api": "8.1.11",
    "@storybook/react": "8.1.11",
    "@storybook/react-webpack5": "8.1.11",
    "@svgr/webpack": "^8.1.0",
    "@testing-library/dom": "^8.20.1",
    "@testing-library/jest-dom": "^6.5.0",
    "@testing-library/react": "^12.1.5",
    "@testing-library/react-hooks": "^8.0.1",
    "@testing-library/user-event": "^12.8.3",
    "@types/classnames": "^2.2.10",
    "@types/dom-to-image": "^2.6.7",
    "@types/enzyme": "^3.10.18",
    "@types/fetch-mock": "^7.3.2",
    "@types/jest": "^29.5.12",
    "@types/jquery": "^3.5.8",
    "@types/js-levenshtein": "^1.1.3",
    "@types/json-bigint": "^1.0.4",
    "@types/math-expression-evaluator": "^1.3.3",
    "@types/mousetrap": "^1.6.15",
    "@types/react": "^17.0.83",
    "@types/react-dom": "^17.0.26",
    "@types/react-gravatar": "^2.6.14",
    "@types/react-json-tree": "^0.6.11",
    "@types/react-loadable": "^5.5.11",
    "@types/react-redux": "^7.1.10",
    "@types/react-router-dom": "^5.3.3",
    "@types/react-syntax-highlighter": "^15.5.13",
    "@types/react-table": "^7.7.20",
    "@types/react-transition-group": "^4.4.12",
    "@types/react-ultimate-pagination": "^1.2.4",
    "@types/react-virtualized-auto-sizer": "^1.0.4",
    "@types/react-window": "^1.8.8",
    "@types/redux-localstorage": "^1.0.8",
    "@types/redux-mock-store": "^1.0.6",
    "@types/rison": "0.1.0",
    "@types/sinon": "^17.0.3",
    "@types/tinycolor2": "^1.4.3",
    "@types/yargs": "12 - 18",
    "@typescript-eslint/eslint-plugin": "^5.62.0",
    "@typescript-eslint/parser": "^5.62.0",
    "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
    "babel-jest": "^29.7.0",
    "babel-loader": "^9.1.3",
    "babel-plugin-dynamic-import-node": "^2.3.3",
    "babel-plugin-jsx-remove-data-test-id": "^3.0.0",
    "babel-plugin-lodash": "npm:@timbryandev/babel-plugin-lodash@^1.0.2",
    "babel-plugin-typescript-to-proptypes": "^2.0.0",
    "cheerio": "1.0.0-rc.10",
    "copy-webpack-plugin": "^12.0.2",
    "cross-env": "^7.0.3",
    "css-loader": "^7.1.2",
    "css-minimizer-webpack-plugin": "^7.0.0",
    "enzyme": "^3.11.0",
    "esbuild": "^0.20.0",
    "esbuild-loader": "^4.2.2",
    "eslint": "^8.56.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-config-prettier": "^7.2.0",
    "eslint-import-resolver-typescript": "^3.7.0",
    "eslint-plugin-cypress": "^3.6.0",
    "eslint-plugin-file-progress": "^1.5.0",
    "eslint-plugin-import": "^2.24.2",
    "eslint-plugin-jest": "^27.8.0",
    "eslint-plugin-jest-dom": "^5.5.0",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-lodash": "^7.4.0",
    "eslint-plugin-no-only-tests": "^3.3.0",
    "eslint-plugin-prettier": "^5.1.3",
    "eslint-plugin-react": "^7.37.2",
    "eslint-plugin-react-hooks": "^4.6.2",
    "eslint-plugin-react-prefer-function-component": "^3.3.0",
    "eslint-plugin-storybook": "^0.8.0",
    "eslint-plugin-testing-library": "^6.4.0",
    "eslint-plugin-theme-colors": "file:tools/eslint-plugin-theme-colors",
    "eslint-plugin-translation-vars": "file:tools/eslint-plugin-translation-vars",
    "exports-loader": "^5.0.0",
    "fetch-mock": "^7.7.3",
    "fork-ts-checker-webpack-plugin": "^9.0.2",
    "history": "^5.3.0",
    "html-webpack-plugin": "^5.6.3",
    "ignore-styles": "^5.0.1",
    "imports-loader": "^5.0.0",
    "jest": "^29.7.0",
    "jest-environment-enzyme": "^7.1.2",
    "jest-environment-jsdom": "^29.7.0",
    "jest-enzyme": "^7.1.2",
    "jest-html-reporter": "^3.10.2",
    "jest-websocket-mock": "^2.5.0",
    "jsdom": "^26.0.0",
    "lerna": "^8.1.7",
    "less": "^4.2.0",
    "less-loader": "^12.2.0",
    "mini-css-extract-plugin": "^2.9.0",
    "mock-socket": "^9.3.1",
    "open-cli": "^8.0.0",
    "po2json": "^0.4.5",
    "prettier": "3.3.3",
    "prettier-plugin-packagejson": "^2.5.3",
    "process": "^0.11.10",
    "react-resizable": "^3.0.5",
    "react-test-renderer": "^17.0.2",
    "redux-mock-store": "^1.5.4",
    "sinon": "^18.0.0",
    "source-map": "^0.7.4",
    "source-map-support": "^0.5.21",
    "speed-measure-webpack-plugin": "^1.5.0",
    "storybook": "8.1.11",
    "style-loader": "^4.0.0",
    "thread-loader": "^4.0.4",
    "ts-jest": "^29.2.5",
    "ts-loader": "^9.5.1",
    "typescript": "5.1.6",
    "vm-browserify": "^1.1.2",
    "webpack": "^5.97.1",
    "webpack-bundle-analyzer": "^4.10.1",
    "webpack-cli": "^4.10.0",
    "webpack-dev-server": "^4.15.1",
    "webpack-manifest-plugin": "^5.0.0",
    "webpack-sources": "^3.2.3",
    "webpack-visualizer-plugin2": "^1.1.0"
  },
  "engines": {
    "node": "^20.16.0",
    "npm": "^10.8.1"
  },
  "overrides": {
    "core-js": "^3.38.1",
    "d3-color": "^3.1.0",
    "yosay": {
      "ansi-regex": "^4.1.1"
    },
    "puppeteer": "^22.4.1",
    "underscore": "^1.13.7",
    "jspdf": "^3.0.1",
    "fast-glob": {
      "micromatch": "^4.0.6"
    }
  },
  "readme": "ERROR: No README data found!",
  "scarfSettings": {
    "allowTopLevel": true
  },
  "_id": "superset@0.0.0-dev"
}

**babel_config.js**
/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
const packageConfig = require('./package');

module.exports = {
  sourceMaps: true,
  sourceType: 'module',
  retainLines: true,
  presets: [
    [
      '@babel/preset-env',
      {
        useBuiltIns: 'usage',
        corejs: 3,
        loose: false,
        modules: false,
        shippedProposals: false,
        forceAllTransforms: true,
        targets: {
          chrome: '30',
          android: '4.4',
          ios: '8',
          safari: '8',
          firefox: '30',
          edge: '12'
        },
      },
    ],
    [
      '@babel/preset-react',
      {
        development: process.env.BABEL_ENV === 'development',
        runtime: 'automatic',
      },
    ],
    '@babel/preset-typescript',
  ],
  plugins: [
    'lodash',
    '@babel/plugin-syntax-dynamic-import',
    ['@babel/plugin-proposal-class-properties', { loose: false }],
    ['@babel/plugin-proposal-optional-chaining', { loose: false }],
    ['@babel/plugin-proposal-private-methods', { loose: false }],
    ['@babel/plugin-proposal-nullish-coalescing-operator', { loose: false }],
    ['@babel/plugin-transform-private-property-in-object', { loose: false }],
    ['@babel/plugin-transform-arrow-functions'],
    ['@babel/plugin-transform-template-literals'],
    ['@babel/plugin-transform-destructuring'],
    ['@babel/plugin-transform-spread'],
    ['@babel/plugin-transform-parameters'],
    ['@babel/plugin-transform-block-scoping'],
    ['@babel/plugin-transform-classes'],
    ['@babel/plugin-transform-computed-properties'],
    ['@babel/plugin-transform-for-of'],
    ['@babel/plugin-transform-function-name'],
    ['@babel/plugin-transform-literals'],
    ['@babel/plugin-transform-object-super'],
    ['@babel/plugin-transform-shorthand-properties'],
    ['@babel/plugin-transform-sticky-regex'],
    ['@babel/plugin-transform-unicode-regex'],
    ['@babel/plugin-transform-exponentiation-operator'],
    ['@babel/plugin-transform-async-to-generator'],
    ['@babel/plugin-transform-regenerator'],
    ['@babel/plugin-transform-modules-commonjs'],
    ['@babel/plugin-transform-runtime', { 
      corejs: 3,
      helpers: true,
      regenerator: true,
      useESModules: false
    }],
    // only used in packages/superset-ui-core/src/chart/components/reactify.tsx
    ['babel-plugin-typescript-to-proptypes', { loose: true }],
    [
      '@emotion/babel-plugin',
      {
        autoLabel: 'dev-only',
        labelFormat: '[local]',
      },
    ],
  ],
  env: {
    // Setup a different config for tests as they run in node instead of a browser
    test: {
      presets: [
        [
          '@babel/preset-env',
          {
            useBuiltIns: 'usage',
            corejs: 3,
            loose: true,
            shippedProposals: true,
            modules: 'auto',
            targets: { node: 'current' },
          },
        ],
        [
          '@babel/preset-react',
          {
            development: process.env.BABEL_ENV === 'development',
            runtime: 'automatic',
          },
        ],
        '@babel/preset-typescript',
      ],
      plugins: [
        'babel-plugin-dynamic-import-node',
        '@babel/plugin-transform-modules-commonjs',
      ],
    },
    // build instrumented code for testing code coverage with Cypress
    instrumented: {
      plugins: [
        [
          'istanbul',
          {
            exclude: ['plugins/**/*', 'packages/**/*'],
          },
        ],
      ],
    },
    production: {
      plugins: [
        [
          'babel-plugin-jsx-remove-data-test-id',
          {
            attributes: 'data-test',
          },
        ],
      ],
    },
    testableProduction: {
      plugins: [],
    },
  },
  overrides: [
    {
      test: './plugins/plugin-chart-handlebars/node_modules/just-handlebars-helpers/*',
      sourceType: 'unambiguous',
    },
  ],
};



GitHub link: https://github.com/apache/superset/discussions/35134

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] how to preview dashboards in Android webview Chrome 66 [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: how to preview dashboards in Android webview Chrome 66

<!-- Answer -->
Superset's Babel and Webpack configs are set up to support Chrome 66 and Android WebView, so you shouldn't need major changes there. If dashboards aren't loading or are stuck in a WebView, common causes include: initial filters not loading, issues with default filter values, dashboard import problems, or guest token/auth issues. Also, make sure the embedded URL is accessible from your device (not just localhost), and that your guest token is valid and permissions are set up for embedding.

If you see a warning like `You should call configure(...) before calling other methods @ TranslatorSingleton.ts:37`, it means the translation system needs to be initialized—this can be done by injecting JavaScript into the WebView to call `configure()` with a language pack. Make sure this runs after the page loads and that the JS context is ready.

If you still have issues, check for JavaScript errors in the WebView, confirm all scripts are loaded, and debug network requests (using Chrome DevTools or a proxy tool) to spot any failed requests or permission problems. More details and troubleshooting steps are discussed [here](https://github.com/apache/superset/discussions/32540#discussioncomment-12447593).

If you have a specific error message or see a particular feature not working, sharing that will help narrow down the cause.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/a9a5dcae-34d3-4118-b481-4b2e417745c7?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/a9a5dcae-34d3-4118-b481-4b2e417745c7?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/a9a5dcae-34d3-4118-b481-4b2e417745c7?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/a9a5dcae-34d3-4118-b481-4b2e417745c7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a9a5dcae-34d3-4118-b481-4b2e417745c7?feedback_type=hallucination) | [Report šŸ›](https://app.dosu.dev/response-feedback/a9a5dcae-34d3-4118-b481-4b2e417745c7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a9a5dcae-34d3-4118-b481-4b2e417745c7?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35134)

GitHub link: https://github.com/apache/superset/discussions/35134#discussioncomment-14399221

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] how to preview dashboards in Android webview Chrome 66 [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: how to preview dashboards in Android webview Chrome 66

<!-- Answer -->
Superset's Babel and Webpack configs are set up to support Chrome 66 and Android WebView, so you shouldn't need major changes there. If dashboards aren't loading or are stuck in a WebView, common causes include: initial filters not loading, issues with default filter values, dashboard import problems, or guest token/auth issues. Also, make sure the embedded URL is accessible from your device (not just localhost), and that your guest token is valid and permissions are set up for embedding.

If you see a warning like `You should call configure(...) before calling other methods @ TranslatorSingleton.ts:37`, it means the translation system needs to be initialized—this can be done by injecting JavaScript into the WebView to call `configure()` with a language pack. Make sure this runs after the page loads and that the JS context is ready.

If you still have issues, check for JavaScript errors in the WebView, confirm all scripts are loaded, and debug network requests (using Chrome DevTools or a proxy tool) to spot any failed requests or permission problems. More details and troubleshooting steps are discussed [here](https://github.com/apache/superset/discussions/32540#discussioncomment-12447593).

If you have a specific error message or see a particular feature not working, sharing that will help narrow down the cause.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*

---

Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).

[![Leave Feedback](https://img.shields.io/badge/Leave%20Feedback-555555?style=flat)](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=a9a5dcae-34d3-4118-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2IDcuNjE1MzIgNzguNTU2IDIxLjM4NDcgNzguNTU2IDM4LjM3MDFIOTIuNzUwNUM5Mi43NTA1IDEzLjU0NTMgNzIuNjI2IC02LjU3OTE5IDQ3LjgwMTMgLTYuNTc5MTlWNy42MTUzMlpNNDIuNTgwNSA3LjYxNTMySDQ3LjgwMTNWLTYuNTc5MTlINDIuNTgwNVY3LjYxNTMyWk00MC43MDQgNy42MTUzMkg0Mi41ODA1Vi02LjU3OTE5SDQwLjcwNFY3LjYxNTMyWiIgZmlsbD0iYmxhY2siIG1hc2s9InVybCgjZG9zdS1kLWN1dG91dCkiLz48cGF0aCBkPSJNNjguOTIxNSAzNi4wMTM1QzY4LjkyMTUgMzYuMDEzNSA2NS43MzY5IDQ5LjQ3MzggNTEuNDIzMSA0OS40NzM4QzM3LjEwOTMgNDkuNDczOCAzMi41Nzg3IDM3LjM1OTYgMzIuNTc4NyAzNi4wMTM1IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjcuNjkxNjEi
 IHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0wLjM0ODYzMyA4NS40OTQ2QzAuMzQ4NjMzIDg1LjQ5NDYgMjkuNDg1NiA4NS44MzA5IDM0LjgwOSA4NS42OThDNDQuODMzNyA4NS40NDc3IDUxLjI4NzIgODQuNDAyIDU3LjUyNjkgNzguOTcyNEM2Mi44MTI5IDc0LjM3MjcgNzUuMTM0MiA1OS42ODM2IDc1LjEzNDIgNTkuNjgzNiIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI2LjE2NDgyIi8%2BPC9zdmc%2B)](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [![Share Dosu with your team](https://img.shields.io/badge/Share%20Dosu%20with%20your%20team-1f6feb?style=flat)](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)

GitHub link: https://github.com/apache/superset/discussions/35134#discussioncomment-14399221

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] how to preview dashboards in Android webview Chrome 66 [superset]

Posted by "HCTzz (via GitHub)" <gi...@apache.org>.
GitHub user HCTzz added a comment to the discussion: how to preview dashboards in Android webview Chrome 66

Uncaught SyntaxError are:
09:58:31.030 Uncaught SyntaxError: Invalid or unexpected token at http://192.168.101.190:8088/static/assets/5499.66358967cd211ac6aad8.entry.js:2
09:58:31.919 Uncaught SyntaxError: Unexpected token . at http://192.168.101.190:8088/static/assets/4170.a2d90223c833b3c33efe.entry.js:2
 

GitHub link: https://github.com/apache/superset/discussions/35134#discussioncomment-14399261

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] how to preview dashboards in Android webview Chrome 66 [superset]

Posted by "HCTzz (via GitHub)" <gi...@apache.org>.
GitHub user HCTzz added a comment to the discussion: how to preview dashboards in Android webview Chrome 66

[@dosu](https://go.dosu.dev/dosubot)
It can preview normally in Chrome 92, but there is an error message in the console in Chrome 66
Uncaught SyntaxError are:
09:58:31.030 Uncaught SyntaxError: Invalid or unexpected token at http://192.168.101.190:8088/static/assets/5499.66358967cd211ac6aad8.entry.js:2
09:58:31.919 Uncaught SyntaxError: Unexpected token . at http://192.168.101.190:8088/static/assets/4170.a2d90223c833b3c33efe.entry.js:2
in chrome 92

GitHub link: https://github.com/apache/superset/discussions/35134#discussioncomment-14399270

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] how to preview dashboards in Android webview Chrome 66 [superset]

Posted by "HCTzz (via GitHub)" <gi...@apache.org>.
GitHub user HCTzz deleted a comment on the discussion: how to preview dashboards in Android webview Chrome 66

It can preview normally in Chrome 92, but there is an error message in the console in Chrome 66
Uncaught SyntaxError are:
09:58:31.030 Uncaught SyntaxError: Invalid or unexpected token at http://192.168.101.190:8088/static/assets/5499.66358967cd211ac6aad8.entry.js:2
09:58:31.919 Uncaught SyntaxError: Unexpected token . at http://192.168.101.190:8088/static/assets/4170.a2d90223c833b3c33efe.entry.js:2
 in chrome 92 

GitHub link: https://github.com/apache/superset/discussions/35134#discussioncomment-14399261

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] how to preview dashboards in Android webview Chrome 66 [superset]

Posted by "HCTzz (via GitHub)" <gi...@apache.org>.
GitHub user HCTzz edited a comment on the discussion: how to preview dashboards in Android webview Chrome 66

It can preview normally in Chrome 92, but there is an error message in the console in Chrome 66
Uncaught SyntaxError are:
09:58:31.030 Uncaught SyntaxError: Invalid or unexpected token at http://192.168.101.190:8088/static/assets/5499.66358967cd211ac6aad8.entry.js:2
09:58:31.919 Uncaught SyntaxError: Unexpected token . at http://192.168.101.190:8088/static/assets/4170.a2d90223c833b3c33efe.entry.js:2
 in chrome 92 

GitHub link: https://github.com/apache/superset/discussions/35134#discussioncomment-14399261

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org