Skip to content

Module parse failed: Unexpected token, when run nuxt build #86

@hasanmubarok9

Description

@hasanmubarok9

I am using this dependency in my current nuxt project. I've never had this problem before, but the last time I did a build, there was an error like this
Screen Shot 2021-06-28 at 17 57 03
It seems to have something to do with compatibility issues with optional chaining doesn't it?, and it suggested adding loader configurations, I've tried adding configs in babelrc, as well as in nuxt.config.js, but nothing works, I suspect it's related to node version, but after I upgrade my node version to the latest one, this problem still appears,

please help

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