Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag. #334

Closed
harrytothemoon opened this issue Jun 5, 2022 · 1 comment

Comments

@harrytothemoon
Copy link

harrytothemoon commented Jun 5, 2022

Due to the project requirements, I have to set allowSyntheticDefaultImports parameter to false in tsconfig.json, but here I will report an error regardless of whether I use the method of
import * as WebpackChain from 'webpack-chain',
import WebpackChain from 'webpack-chain' or
import WebpackChain =require('webpack-chain').

I wonder if there are other solutions?

export = Config;

@edmorley edmorley closed this as completed Feb 3, 2024
@edmorley
Copy link
Member

edmorley commented Feb 4, 2024

Closing since unfortunately this project is no longer maintained:
#358

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants