Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1794

Using js-post-build to rename custom files to page.js for NextJs Projects

$
0
0

Thanks, but I had already gone through this.

I’m getting an error when I try to add the js-post-build config. When I’m removing this config then its compiling successfully. Can you please help me with this?

rescript version : "^11.1.4"

rescript.json file

{
“name”: “test”,
“jsx”: { “version”: 4 },
“sources”: [
{
“dir”: “src”,
“subdirs”: true
},
{
“dir”: “apps/test/app”,
“subdirs”: true
}
],
“package-specs”: {
“module”: “esmodule”,
“in-source”: true
},
“js-post-build”: {
“cmd”: “echo build finished”
},
“suffix”: “.res.js”,
“bs-dependencies”: [“@rescript/core”, “@rescript/react”],
“bsc-flags”: [“-bs-super-errors”, “-open RescriptCore”]
}

FAILED: src/screens/HomePage.cmj
can not handle multiple files
FAILED: cannot make progress due to previous errors.
Finish compiling (exit: 1)


Viewing all articles
Browse latest Browse all 1794

Trending Articles