windicss / windicss-webpack-plugin

🍃 Windi CSS for webpack ⚡
https://windicss.org/integrations/webpack.html
79 stars 19 forks source link

SyntaxError: Unexpected token '?' in next #96

Closed HopperDai closed 2 years ago

HopperDai commented 2 years ago

Describe the bug Appear error when run the example of next windicss-webpack-plugin/example/next/node_modules/windicss-webpack-plugin/dist/plugin.cjs:45 const root = this.options.root ?? compiler.options.resolve?.alias?.["~"] ?? compiler.context; ^ image

David2k13 commented 2 years ago

me too

harlan-zw commented 2 years ago

Hey @HopperDai, @David2k13

Can you confirm what node version you're using? Shouldn't be a problem on node 14.x and above

I've pushed up a fix either way, can you try with 1.5.5*

David2k13 commented 2 years ago

Hey @HopperDai, @David2k13

Can you confirm what node version you're using? Shouldn't be a problem on node 14.x and above

I've pushed up a fix either way, can you try with 1.5.4 thank