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
Module build failed: UnhandledSchemeError: Reading from "alias:/App" is not handled by plugins (Unhandled scheme). #12792
Comments
Limitation you can't use |
@alexander-akait Is this a new limitation introduced in webpack 5? Because, I can see it works with ejected CRA with webpack 4, and I only needed to provide aliases in both I am currently trying to break one in CRA by removing each of every plugins they use to reproduce the same issue to isolate this. |
@chozzz And yes and no, we just recognize URLs in |
@alexander-akait Thanks for the heads up! It actually works as long as the format of the import isn't suffixed with This is pretty confusing though it's not documented anywhere (Or maybe I missed it?), I was expecting Feel free to close it if this is a wontfix type of bug. |
@sokra What do you think? I think we can improve checking on |
@alexander-akait I can see few of improvements, correct me if I am overstepping here;
|
webpack supports
Make sense |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
bump |
Having similar issue:
This is an issue after we upgraded Confirmed this is a syntax error in data uri, webpack gives unclear error message |
Your data url is invalid. The ; need to be a , |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
@alexander-akait what this issue is about?.. regarding aliases for scheme request we already have issue. regarding handling custom scheme requests there is an API for that |
@vankop Yep, you are right, let's close in favor aliases for scheme requests |
I'm having same issues, Below is my webpack config `const path = require('path'); module.exports = {
}` I'm currently using a package called node-fetch as a helper module for another package prismicio/client What I dont get is this: If I remove the node-fetch package, my project compiles successfully, but I get a lot of errors if I use node-fetch. However, the Prismic io docs, encourage using node-fetch, and that's exactly what I'm doing. Here's a link to the docs. |
Do you use |
Yes I did use node-fetch. Node-fetch was even recommended by the official
prismic docs, but following the docs verbatim got me that
UnhandledSchemeError
…On Tue, May 2, 2023, 9:59 AM Alexander Akait ***@***.***> wrote:
Do you use node-fetch for the web target?
—
Reply to this email directly, view it on GitHub
<#12792 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIWGK4WJYEW64PDHIWDGWMTXEDEGJANCNFSM4YLAZGYQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Bug report
What is the current behavior?
Webpack does not resolve path aliases.
I am creating a new react app and trying to configure webpack compiler from scratch.
The issue happens when running the build command with
webpack -c config/webpack.config.ts
- It gives an error as following;Any idea what might have caused this or what I am missing? Any suggestion is appreciated.
My directory structure is as following:
File
index.tsx
File
tsconfig.json/compilerOptions/paths
File
webpack.config.ts
;If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Modules path should be resolved by the supplied aliases.
Other relevant information:
webpack version: 5.23.0
webpack-cli version: 4.5.0
Node.js version: 14.16.0
Operating System: Ubuntu
The text was updated successfully, but these errors were encountered: