如何在Nuxt 2中加载browser.esm.js模块?

问题描述 投票:0回答:1

尝试在 Nuxt 2 项目中导入

@thirdweb-dev/wallets
模块时出现以下错误:

 ERROR  in ./node_modules/@thirdweb-dev/sdk/dist/marketplace-auction-3488e43b.browser.esm.js

Module parse failed: Unexpected token (102:16)                      friendly-errors 17:02:03
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

如何为此模块配置加载程序以使其正常工作?

webpack nuxt.js es6-modules
1个回答
0
投票

你找到解决办法了吗?或者需要 Nuxt 3?

© www.soinside.com 2019 - 2024. All rights reserved.