Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

How to fix 'defaultJSExtensions configuration option is deprecated ...' #856

@ericnewton76

Description

@ericnewton76

Given a config.js similar to:

System.config({
  defaultJSExtensions: true,
  transpiler: "plugin-babel",
  babelOptions: {
    "optional": [
      "runtime",
      "optimisation.modules.system"
    ]
  },
  paths: {
    "github:*": "jspm_packages/github/*",
    "npm:*": "jspm_packages/npm/*"
  },
  warnings: true,

  meta: {
    "*": {
      "babelOptions": {
        "react": true
      },
      "defaultExtension": "js"
    }
  },

  map: {
    "accounting": "npm:[email protected]",
    "babel": "npm:[email protected]",
    "babel-runtime": "npm:[email protected]",
    "core-js": "npm:[email protected]",
"---snip---":"--------------------snip-------------------------"
  }

When I remove line 2: 'defaultJSExtensions: true' then I get error when bundling:

err  Error on fetch for src/pricing at file:///C:/Projects/CLIENT/CLIENTPROJECT/site_FED/src/pricing
        Error: ENOENT: no such file or directory, open 'C:\Projects\CLIENT\CLIENTPROJECT\site_FED\src\pricing'
         at Error (native)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions