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

Error with example repository #18

Open
jpic opened this issue Feb 10, 2019 · 0 comments
Open

Error with example repository #18

jpic opened this issue Feb 10, 2019 · 0 comments

Comments

@jpic
Copy link

jpic commented Feb 10, 2019

Hello !

First, I want to personally thank you for making this really cool module !

However, I have some issues running the example, here is my example repo where i reproduced my use case:

$ webpack-cli
fs.js:120
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/tmp/test-transcrypt-webpack/./__javascript__/webpack_entry.js'
    at Object.openSync (fs.js:449:3)
    at Object.readFileSync (fs.js:349:35)
    at /tmp/test-transcrypt-webpack/node_modules/py-loader/index.js:100:25
    at /tmp/test-transcrypt-webpack/node_modules/node-cmd/cmd.js:25:21
    at ChildProcess.exithandler (child_process.js:288:7)
    at ChildProcess.emit (events.js:197:13)
    at maybeClose (internal/child_process.js:978:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Note that transcrypt itself seems pretty happy:

$ transcrypt webpack_entry.py

Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.7.16
Copyright (C) Geatec Engineering. License: Apache 2.0


Saving target code in: /home/jpic/src/test-transcrypt-webpack/__target__/org.transcrypt.__runtime__.js
Saving minified target code in: /home/jpic/src/test-transcrypt-webpack/__target__/org.transcrypt.__runtime__.js
Saving target code in: /home/jpic/src/test-transcrypt-webpack/__target__/test_transcrypt_webpack.js
Saving minified target code in: /home/jpic/src/test-transcrypt-webpack/__target__/test_transcrypt_webpack.js
Saving target code in: /home/jpic/src/test-transcrypt-webpack/__target__/webpack_entry.js
Saving minified target code in: /home/jpic/src/test-transcrypt-webpack/__target__/webpack_entry.js

Ready

Do you think this is related to TranscryptOrg/Transcrypt#517 ?

Thanks !

jpic added a commit to jpic/python-webpack-loader that referenced this issue Feb 10, 2019
Note that we also need to add to our webpack.config.js::

    resolve: {
        alias: {
            '.': path.resolve(__dirname, '__target__')
        },
        extensions: ['.js', '.py']
    }
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