import * as React from 'react';
export default function TestComponent() {
return (
<div>
<div>Hello</div>
</div>
);
}
and i make npm link between core-app and customer-a.
But when i use TestComponent in customer-a i got an error:
Compiled with problems:
ERROR in ../core-app/src/TestComponent.tsx 7:4
Module parse failed: Unexpected token (7:4)
File was processed with these loaders:
* ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
* ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| export default function TestComponent() {
| return (
> <div>
| <div>Hello</div>
Current Behavior
Hi, i created two example projects:
then I created component in core-app:
and i make npm link between core-app and customer-a.
But when i use TestComponent in customer-a i got an error:
Expected behavior
Suggested solution(s)
Additional context
Your environment