Skip to content

Uncaught TypeError: __webpack_require__(...).context is not a function #3893

@itlangzi

Description

@itlangzi

Version

3.6.0

Environment info

vue 2.6.0  @vue/cli-service   3.6.0

Steps to reproduce

js文件中使用 require.context (webpack提供)浏览器 出现__webpack_require__(...).context is not a function (require.context is not function ) 同样 require.ensure 也不可用

What is expected?

require.context 可用

What is actually happening?

require.context 不可用

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions