Answer the question
In order to leave comments, you need to log in
Why is the function not imported?
Good afternoon. Please tell me why the function is not imported?
./modules/export.js
./index.jsexport default { createScene } //Без ошибок
import createScene = require("./modules/scene"); //Ругается редактор и ошибка после компиляции, предлагает только ts-ignore
import { createScene } from "./modules/scene"; //Аналогичная ошибка
Answer the question
In order to leave comments, you need to log in
./modules/export.js
And the syntax is needed for ES modules:import createScene from "./modules/scene";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question