You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use meteor-client-bundler to package an existing meteor app for use on a new React Native project. The RN project is in a directory at the same level as the meteor app. When I try running meteor-client bundle --source=../myMeteorApp, I get the following error:
While processing files with static-html (for target web.browser):
client/main.html:12: Expected <head> or <body> tag
My client html file has both tags in it, and is being used with React in the Meteor app. Any idea what might be causing this? Thanks!
The text was updated successfully, but these errors were encountered:
It turns out this was an issue with how the config["imports"] packages were being loaded. I have a PR ready to submit, but do I need specific permissions to contribute to the project?
Sure...this is line 52-64 of the bundler.js file in /lib:
// If a packages file was provided, use it in the dummy project
if (sourceDir) {
var sourcePacksFile = Path.resolve(sourceDir, ".meteor/packages");
var sourcePacksContent = Fs.readFileSync(sourcePacksFile).toString();
// Write the composed content to the temp packages file
Fs.writeFileSync(tempPacksFile, sourcePacksContent);
}
// Compose packages file based on provided config
if (config["import"]) {
var tempPacksContent = config["import"].join("\n");
Fs.writeFileSync(tempPacksFile, tempPacksContent);
}
All you really need is the if (config["import"]) { line. Hope that helps!
I'm trying to use meteor-client-bundler to package an existing meteor app for use on a new React Native project. The RN project is in a directory at the same level as the meteor app. When I try running
meteor-client bundle --source=../myMeteorApp
, I get the following error:My client html file has both tags in it, and is being used with React in the Meteor app. Any idea what might be causing this? Thanks!
The text was updated successfully, but these errors were encountered: