Skip to content

Failed to compile with webpack 4 #158

Description

@edwinjue

Hi, receiving these errors when compiling with webpack 4

[./node_modules/node-duckdb/build/Release/node-duckdb-addon.node] 279 bytes {main} [built] [failed] [1 error]
    + 1544 hidden modules

ERROR in ./node_modules/node-duckdb/dist/addon/duckdb.js
Module not found: Error: Can't resolve 'fs' in '/home/xxxx/projectRoot/node_modules/node-duckdb/dist/addon'
 @ ./node_modules/node-duckdb/dist/addon/duckdb.js 4:13-26
 @ ./node_modules/node-duckdb/dist/addon/index.js
 @ ./node_modules/node-duckdb/dist/index.js
 @ ./components/Map/index.js
 @ ./components/main/Desktop/index.js
 @ ./Routes.jsx
 @ ./App.jsx
 @ ./index.js

ERROR in ./node_modules/node-duckdb/build/Release/node-duckdb-addon.node 1:0
Module parse failed: Unexpected character '' (1: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
(Source code omitted for this binary file)
 @ ./node_modules/node-duckdb/dist/addon-bindings/connection-binding.js 6:23-76
 @ ./node_modules/node-duckdb/dist/addon-bindings/index.js
 @ ./node_modules/node-duckdb/dist/addon/duckdb.js
 @ ./node_modules/node-duckdb/dist/addon/index.js
 @ ./node_modules/node-duckdb/dist/index.js
 @ ./components/Map/index.js
 @ ./components/main/Desktop/index.js
 @ ./Routes.jsx
 @ ./App.jsx
 @ ./index.js
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
       4 modules
ℹ 「wdm」: Failed to compile.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions