Next.js Discord

Discord Forum

You may need an appropriate loader to handle this file type,...

Unanswered
Capelin posted this in #help-forum
Open in Discord
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
CapelinOP
i gave up on it
even using tsup it still didnt work with a different error