Skip to content

Cannot read property 'createBundle' of undefined #9

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

Closed
MingxiangFeng opened this issue Jul 2, 2021 · 4 comments
Closed

Cannot read property 'createBundle' of undefined #9

MingxiangFeng opened this issue Jul 2, 2021 · 4 comments

Comments

@MingxiangFeng
Copy link

at vue-bundle-renderer.cjs.js, line 191,

const {evaluateEntry, rewriteErrorTrace} = renderOptions.bundleRunner.createBundle(_bundle, renderOptions);

but renderOptions not has bundleRunner, how to solve this problem.

about the renderOptions.bundleRunner, what i need to trans?

@whitespacecode
Copy link

whitespacecode commented Jul 17, 2021

Getting the same error.
`Symfony\Component\Process\Exception\ProcessFailedException

The command "'/usr/bin/node'
'/home/vagrant/code/project/storage/SSR/713c5edd-b677-4ae9-8fa7-79827bc44252.js'"
failed.

Exit Code: 1(General error)
Working directory: /home/vagrant/code/project/public
Output:

Error Output:

/home/vagrant/code/project/node_modules/vue-bundle-renderer/dist/vue-bundle-renderer.cjs.js:191
const {evaluateEntry, rewriteErrorTrace} =
renderOptions.bundleRunner.createBundle(_bundle, renderOptions);
^
TypeError: Cannot read property 'createBundle' of undefined
at createBundleRenderer
(/home/vagrant/code/project/node_modules/vue-bundle-renderer/dist/vue-bundle-renderer.cjs.js:191:73)
at createRenderer
(/home/vagrant/code/project/storage/SSR/713c5edd-b677-4ae9-8fa7-79827bc44252.js:41:12)
at Object.
(/home/vagrant/code/project/storage/SSR/713c5edd-b677-4ae9-8fa7-79827bc44252.js:55:12)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js
(internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47`

@danielroe
Copy link
Member

Would you provide a code reproduction?

juvirez added a commit to juvirez/vue-bundle-renderer that referenced this issue Jul 19, 2021
Added bundleRunner as required option for createBundleRenderer
@juvirez
Copy link
Contributor

juvirez commented Jul 19, 2021

It looks like createBundleRenderer has one more required option: bundleRunner.
I have updated the usage in the readme: #10

@pi0
Copy link
Member

pi0 commented Aug 25, 2021

Resolved by #10 (however we need better runtime check message...)

@pi0 pi0 closed this as completed Aug 25, 2021
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

5 participants