This might be related: Dfx 0.12.1 - importing createActor - dfx generate - do not import from .dfx when using React