deep-foundation / deepcase-app

https://deep-foundation.github.io/deepcase-app/
The Unlicense
11 stars 6 forks source link

Failed to compile ../deeplinks/imports/client-handler.tsx Module parse failed: Unexpected token (8:1) #239

Closed Konard closed 8 months ago

Konard commented 8 months ago

Error in Deep.Case App:

IMG_1873

Failed to compile
../deeplinks/imports/client-handler.tsx
Module parse failed: Unexpected token (8:1)
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
|   deep,
|   input = {},
> }: {
|   value: string;
|   deep: DeepClient;
This error occurred during the build process and can only be dismissed by fixing the error.

Error in terminal:

[0] wait  - compiling /_error (client and server)...
[0] error - ../deeplinks/imports/client-handler.tsx
[0] Module parse failed: Unexpected token (8:1)
[0] 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
[0] |   deep,
[0] |   input = {},
[0] > }: {
[0] |   value: string;
[0] |   deep: DeepClient;
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client-handler.tsx
[0] ../deepcase/imports/client-handler.js
[0] ../deepcase/imports/cyto/editor.js
[0] ../deepcase/imports/cyto/graph.js
Konard commented 8 months ago

Though it was fixed at: https://github.com/deep-foundation/deepcase-app/issues/237

Somehow it happens again.

Workaround 1

Uncomment, save, comment and save this line: https://github.com/deep-foundation/deepcase-app/blob/f44921b5b1a7e5ffe553b8a4ec4ccbe66f155d52/next.config.js#L51

🤯

May be it is a way to completely rebuild the app.