deno icon indicating copy to clipboard operation
deno copied to clipboard

Error importing interface in Node project

Open NarHakobyan opened this issue 4 months ago • 5 comments

Version: Deno 2.0.0-rc.9

error: Uncaught SyntaxError: The requested module '../../interfaces' does not provide an export named 'IFile'
import { IFile } from '../../interfaces';

tried to migrate project from node to deno. Barrel files are not working if they export only types and interfaces.

Update

it is not connected to Barrel file, it doesn't work without index.ts

image

NarHakobyan avatar Oct 01 '24 09:10 NarHakobyan