Closed dac09 closed 3 years ago
Hi @dac09 !
My project is based on with-typescript-emotion
So you mean, did you upgrade nextron from v5 to v6?
Yes, that's right. Previously:
"next": "9.5.1",
"nextron": "^5.15.3",
Sorry I didn't write upgrade guides.
Do you have .babelrc
?
As of nextron@6
, we need to set presets to use custom .babelrc
for main process:
{
"presets": [
"nextron/babel"
]
}
Unfortunately that still doesn't work
Updated .babelrc
with the following
{
"presets": ["nextron/babel", "next/babel", "@emotion/babel-preset-css-prop"],
"plugins": ["emotion", "babel-plugin-macros"]
}
Sorry, I updated the wrong babel rc in renderer/.babelrc
. However adding .babelrc in the root of the project doesn't seem to work either.
No problem, thank you for your reporting the issue!
I'll investigate it, please wait a moment.
@dac09
Do you have ./.babelrc
?
I didn't encounter the problem...
Yes I tried with it too, same issue
@dac09
Could you tell me the code L51:12
?
Error: Module parse failed: Unexpected token (51:12)
Nothing special @saltyshiomix, just some import
statements. I don't have the exactly log now, but it definitely works on nextron 5.x
I'm having the same problem, i just create a .babelrc
with "presets": ["nextron/babel", "next/babel"]
and this don't work, in 5.x
a log pops up in console informing external babel config, but now that don't occours
Closing this, as it seems to have been resolved in 6.0.6
. I was able to upgrade and build without too much hassle!
Hi, I just tried updating to the latest nextron. Relevant dependencies
It seems to fail launching with a Babel error.
My project is based on with-typescript-emotion