Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: "no loaders are configured to process this file" (iconv.js) #149

Open
yfyfyfyfyfyf opened this issue Sep 29, 2022 · 0 comments

Comments

@yfyfyfyfyfyf
Copy link

[0]
[0] > berry@0.0.220928 build:main
[0] > cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts
[0]
[1]
[1] > berry@0.0.220928 build:renderer
[1] > cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts
[1]
[0] ERROR in ./release/app/node_modules/iconv/build/Release/iconv.node 1:0
[0] Module parse failed: Unexpected character '�' (1:0)
[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
[0] (Source code omitted for this binary file)
[0] @ ./release/app/node_modules/iconv/lib/iconv.js 27:13-51
[0] @ ./release/app/node_modules/ref-wchar-napi/index.js 7:12-34
[0] @ ./release/app/node_modules/active-win/lib/windows.js 5:14-39
[0] @ ./release/app/node_modules/active-win/index.js 13:9-36 29:9-41
[0] @ ./src/main/main.ts 21:37-89
[0]
[0] ERROR in ./release/app/node_modules/iconv/lib/iconv.js 31:13-49
[0] Module not found: Error: Can't resolve '../build/Debug/iconv.node' in '/Users/yanfu/Downloads/repo/video-experiments-app/release/app/node_modules/iconv/lib'
[0] @ ./release/app/node_modules/ref-wchar-napi/index.js 7:12-34
[0] @ ./release/app/node_modules/active-win/lib/windows.js 5:14-39
[0] @ ./release/app/node_modules/active-win/index.js 13:9-36 29:9-41
[0] @ ./src/main/main.ts 21:37-89
[0]
[0] webpack compiled with 2 errors
[0] npm run build:main exited with code 1
[1] npm run build:renderer exited with code 0
yanfu@pro-3 video-experiments-app %

When I try to build my Electron app, I encountered this error: "no loaders are configured to process this file".
Can I ask if anyone knows how to resolve this?

Thanks!

/yf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant