Open Tallyb opened 4 years ago
Can you try and add this in one of the component files ?
declare module ‘*.svg’ {
const content: any;
export const ReactComponent: any;
export default content;
}
It does not really fail - but an index file is created.
Can you please share a tar of the project?
Do a create react app and make the logo.svg file into a component.
Describe the bug
Receiving error on build on file not found when trying to build react component that imports an svg file.
Steps to Reproduce
Note that this will happen also if you remove the compiler to styles/*
Expected Behavior
bit build should success.
Screenshots, exceptions and logs
` `` error: bit failed to build heading@0.0.2 with the following exception: ENOENT: no such file or directory, ensureSymlink '/var/folders/w2/frfs_j4n46s75383m2ld98xc0000gn/T/bit/capsule-69026/.dependencies/styles/logo/dist/logo.svg' Error: ENOENT: no such file or directory, ensureSymlink '/var/folders/w2/frfs_j4n46s75383m2ld98xc0000gn/T/bit/capsule-69026/.dependencies/styles/logo/dist/logo.svg'