You may need an appropriate loader to handle this file type,...
Unanswered
Capelin posted this in #help-forum
CapelinOP
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import React from 'react';
|
> import type { SvgIconProps } from '@mui/joy/SvgIcon';
|
| export default function CSSIcon({ ...props }: SvgIconProps) {This file is from a package with exported .tsx component files
The error occurs during build
5 Replies
CapelinOP
yes package.json has type: module
CapelinOP
bump
@Capelin
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import React from 'react';
|
> import type { SvgIconProps } from '@mui/joy/SvgIcon';
|
| export default function CSSIcon({ ...props }: SvgIconProps) {
This file is from a package with exported .tsx component files
The error occurs during build
when you control click to
SvgIconProps what file does it go to?CapelinOP
i gave up on it
even using tsup it still didnt work with a different error