You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone I have an error in my console iled: Unexpected token (2:8)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 * as React from 'react';> declare const ForwardRef: React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement>, "string" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "className" | "color" | "height" | "id" ....... "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<SVGSVGElement>>;| export default ForwardRef;|
and this error also occurs when I build my library.
My package.json scripts are : "test": "jest --coverage", "build": "tsup src/index.ts --format esm,cjs --dts --external react --inject ./react-import.js", "dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react --inject ./react-import.js", "lint": "TIMING=1 eslint 'src/**/*.{ts,tsx}' --fix", "format": "TIMING=1 prettier 'src/**/*.{ts,tsx}' --write", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook"
and i dont have any specific tsup.config.js file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone I have an error in my console
iled: Unexpected token (2:8)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 * as React from 'react';> declare const ForwardRef: React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement>, "string" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "className" | "color" | "height" | "id" ....... "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<SVGSVGElement>>;| export default ForwardRef;|
and this error also occurs when I build my library.
My package.json scripts are :
"test": "jest --coverage", "build": "tsup src/index.ts --format esm,cjs --dts --external react --inject ./react-import.js", "dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react --inject ./react-import.js", "lint": "TIMING=1 eslint 'src/**/*.{ts,tsx}' --fix", "format": "TIMING=1 prettier 'src/**/*.{ts,tsx}' --write", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook"
and i dont have any specific tsup.config.js file.
Beta Was this translation helpful? Give feedback.
All reactions