dxf-viewer icon indicating copy to clipboard operation
dxf-viewer copied to clipboard

Module parse failed

Open jayantpaliwal opened this issue 1 year ago • 1 comments

dxf-viewer/src/DxfViewer.js 834:60 Module parse failed: Unexpected token (834:60) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.

  **const material = materialFactory.call(this.viewer, this.viewer._TransformColor(color),
                                          instanceBatch?.GetInstanceType() ?? InstanceType.NONE)**

{ "three": "^0.155.0" }

jayantpaliwal avatar Nov 07 '23 18:11 jayantpaliwal

If you are targeting an old JS version, see example repository for Babel example. Make sure null coalescing operator and optional chaining is enabled in Babel config. Also ensure the library is transpiled in Vue config.

vagran avatar Nov 08 '23 08:11 vagran