Skip to content

TypeError: (0 , _typeof3.default) is not a function when executing test inside sub-package of monorepo #11036

@soryy708

Description

@soryy708

Bug Report

  • I would like to work on a fix!

Current Behavior
Executing tests written in ES6+ inside sub-package of monorepo results in error: TypeError: (0 , _typeof3.default) is not a function

Input Code
Repro repo: https://github.com/soryy708/typeof3.default-repro

Expected behavior/code
Executed tests without errors

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

  • Filename: babel.config.js
module.exports = {
    presets: [
        ['@babel/preset-env', {
            modules: 'commonjs'
        }]
    ],
    plugins: [
        '@babel/transform-runtime'
    ],
    ignore: [
        'node_modules'
    ]
};

Environment

npx: installed 1 in 2.935s

  System:
    OS: Windows 10 10.0.18362
  Binaries:
    Node: 12.13.0 - C:\Program Files\nodejs\node.EXE
    npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD
  • Babel version(s): 7.8.3
  • Node/npm version: Node11.13 npm6.12
  • OS: Windows 10 x64 Home
  • Monorepo: Yes
  • How you are using Babel: register

Possible Solution
¯\(ツ)

Additional context/Screenshots
Perhaps related?

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions