-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Error: Can't resolve './..__target__src.main.js' #624
Comments
Here's a link to my Hello World project: |
Hi, |
It's been a while since I've been able to get back to this project, but I was able to figure out a fix for the problem. It looks like there is an issue in transcrypt-loader when run on Windows. I had to edit the following file: On line 44, the code was calling path.relative as follows:
This returned the string:
The fix I used was to call
In the end, it appears to be a problem with running transcrypt-loader on Windows, due to differences in the path separator. I'd be happy to contribute a pull request, but I couldn't find the transcrypt-loader source in this repo, and I couldn't find another project in GitHub for it either. Is there another place this project is being shared? |
Hi, sorry that you stumbled into this. I'll contact the original developer to solve the problem, taking into account your solution. Meanwhile thanks for the detective work! |
@JdeH is there anything I can do to help resolve this? We'd be happy to host the transcrypt loader on the cloudflare github if need be. |
…scrypt-loader backslash path separators TranscryptOrg/Transcrypt#624
I managed to find the source code for the transcrypt-loader npm package. It appears to only live in a branch called "parcel-bundler2". I have submitted a pull request but I think @doconix will need to do the actual uploading if it is approved. |
Just FYI, this same problem exists in the parcel-plugin-transcrypt package as well. It works with the above workaround by adding replace() on line 46 in
to
The default package config in the same file that uses python3 was an issue on Windows as well, though that can be fixed by putting a custom config in |
For anyone interested, because the new version of Parcel uses a plugin system that is completely incompatible with the older version, I recently created and published a new Python transformer for Parcel V2 that uses Transcrypt. So far it has handled all of the different environments and platforms I've tried it on. But if you run into any problems with it, feel free to open up a GitHub issue and I'll look into it. |
Hi, I'm new to Transcrypt, but I love the concept!
I thought I'd try a simple "Hello World" project, but I'm running into the following error when I build using webpack:
The only thing that stands out to me is the folder path:
My guess is it should actually be:
I'm running on Windows 10, and I'm not sure if it's a problem with building paths on Windows, or because I'm doing something wrong.
It builds fine when I run:
Is there any other info I should Include?
OS: Windows 10
Python: 3.7.2
Node: v10.15.1
NPM: 6.4.1
The text was updated successfully, but these errors were encountered: