I imported this line:
import { myType } from 'src/enum';
And I get this error:
Cannot find module 'src/enum'
But if I add ./
before src
, the problem will be solved
import { myType } from './src/enum';
why?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I imported this line:
import { myType } from 'src/enum';
And I get this error:
Cannot find module 'src/enum'
But if I add ./
before src
, the problem will be solved
import { myType } from './src/enum';
why?