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

Module parse failed: Unexpected character '#' #1924

Closed
AutismPatient opened this issue Feb 7, 2023 · 5 comments
Closed

Module parse failed: Unexpected character '#' #1924

AutismPatient opened this issue Feb 7, 2023 · 5 comments

Comments

@AutismPatient
Copy link

AutismPatient commented Feb 7, 2023

Describe the bug
npm run electron:serve
image

To Reproduce
good running

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

module.exports = {
    lintOnSave: false,
    devServer: {
        port: 8089
    },
    pluginOptions: {
        electronBuilder: {
            preload: 'src/preload.js',
            builderOptions: {
                publish: [
                    {
                        provider: "github",
                        releaseType: 'release',
                        private: true,
                    }
                ],
                win: {
                    target: ['zip'],
                    icon: 'build/WeHub.png',
                },
                extraResources: [
                    "script/check_db_export.bat",
                    "releases.md",
                    "script/bc4svn.bat",
                    'build/WeHub.png',
                    'build/icon.png'
                ],
                extraFiles: [
                    {
                        'from': 'golang',
                        'to': 'golang',
                        "filter": ["**/*"]
                    }
                ],
                afterAllArtifactBuild: './script/AfterAllArtifactBuild.js',
                afterPack: './script/BeforeAllArtifactBuild.js',
            },
            outputDir: 'electron-output'
        }
    }
}

Additional context

I used the node native module,But it seems to have failed

@MatthijsBurgh
Copy link
Collaborator

@MatthijsBurgh
Copy link
Collaborator

Probably similar, not the same, solution required as #1833

@AutismPatient
Copy link
Author

Thank you,brother.
DF73DAD4

@AutismPatient
Copy link
Author

AutismPatient commented Feb 7, 2023

image

It doesn't seem to work ,I spent the whole day with no clue
DFFB41EA

@AutismPatient
Copy link
Author

After all, this problem points to an environment where C++ compilation is not configured correctly

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

2 participants