ERROR in ../simple-shared-data/index.ts 3:7
Module parse failed: Unexpected token (3:7)
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.
| __webpack_require__.$Refresh$.runtime = require('C:/temp/monorepo-example/node_modules/react-refresh/runtime.js');
|
> export interface QueryPayload {
| payload: string;
| }
@ ./src/App.tsx 8:0-56 48:10-14
@ ./src/index.tsx 7:0-24 11:33-36
webpack 5.65.0 compiled with 1 error in 223 ms
are we doomed to export just types? π€’
any help?π
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
thanks for sharing!
I made a little experiment that didn't go well:
in simple-shared-data/index.ts
I added:
Then I imported it in App.tsx, like this:
But as soon as I try to use it, like this:
Then it goes crazyπ΅
are we doomed to export just types? π€’
any help?π