Postprocessing: update to v6.21.0 error Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (22:0)

Created on 8 Mar 2021  路  3Comments  路  Source: vanruesc/postprocessing

Description of the bug

after update to
```ERROR in ./node_modules/postprocessing/build/postprocessing.esm.js 22:0
Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (22: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
|
| // src/core/EffectComposer.js

import {
| DepthStencilFormat,
| DepthTexture,
```

works fine in v6.20.3 anything i need to change on my webpack build?

bug

All 3 comments

Please open node_modules/postprocessing/package.json, remove the line "type": "commonjs" and check if that fixes it.

yes this fixed the issue

Alright, thanks for checking! I'll publish a patch later today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lhamadopagode picture lhamadopagode  路  4Comments

AlexAegis picture AlexAegis  路  3Comments

Mykita picture Mykita  路  3Comments

gigablox picture gigablox  路  3Comments

dghez picture dghez  路  4Comments