Same react codebase on Mac and Linux, works on Mac but won't run on Linux due to errors?












0















Devs, why would 'react-scripts build' command show "import" and "default export" errors on the Linux but not on the Mac? Same codebase. Is there a config or environmental var that allows you to ignore errors in jsx files during this process?



My issue is that I have the same codebase that I am trying to get setup on both a Mac and a Linux, both computer have the same package versions installed, use the same command to run (i.e. npm start). My issue is that while the program can get up and running on the Mac just fine, on Linux it stops right after installing dependencies... line, indicating that there is some error that is preventing the program from running fully, both programs are being run from Visual Studio Code.



A suspicion of a friend is that there is some configuration setup possible on the Mac that is forcing the build script to ignore certain errors during the build process, thereby allowing the program to run despite having errors. This appears to have been confirmed when I once found a random error in the react code - fixed it - attempted to run the script again and it stopped due to a different error. While I don't have time to run through the entire codebase looking for small errors like this, I would be interested know if there is such a script that is forcing the react build to ignore said errors and if so where can I locate it on Windows/Linux and fix it?



Thanks again!










share|improve this question

























  • Title and first paragraph describe the situation differently. The title says that it does work on Mac but not on Linux; the first paragraph says it works on Mac and Linux but does not work on Linux. Which is it? Also what exactly are the errors?

    – Pointy
    Nov 27 '18 at 3:31











  • @Pointy Sorry for the confusion, but it does NOT work on the Linux, while it does work on the Mac. The error is essentially saying that a component is not being exported by default correctly but it while it exists in both codebases the linux will not allow the program to run while the mac will

    – Lullaby
    Nov 27 '18 at 3:37
















0















Devs, why would 'react-scripts build' command show "import" and "default export" errors on the Linux but not on the Mac? Same codebase. Is there a config or environmental var that allows you to ignore errors in jsx files during this process?



My issue is that I have the same codebase that I am trying to get setup on both a Mac and a Linux, both computer have the same package versions installed, use the same command to run (i.e. npm start). My issue is that while the program can get up and running on the Mac just fine, on Linux it stops right after installing dependencies... line, indicating that there is some error that is preventing the program from running fully, both programs are being run from Visual Studio Code.



A suspicion of a friend is that there is some configuration setup possible on the Mac that is forcing the build script to ignore certain errors during the build process, thereby allowing the program to run despite having errors. This appears to have been confirmed when I once found a random error in the react code - fixed it - attempted to run the script again and it stopped due to a different error. While I don't have time to run through the entire codebase looking for small errors like this, I would be interested know if there is such a script that is forcing the react build to ignore said errors and if so where can I locate it on Windows/Linux and fix it?



Thanks again!










share|improve this question

























  • Title and first paragraph describe the situation differently. The title says that it does work on Mac but not on Linux; the first paragraph says it works on Mac and Linux but does not work on Linux. Which is it? Also what exactly are the errors?

    – Pointy
    Nov 27 '18 at 3:31











  • @Pointy Sorry for the confusion, but it does NOT work on the Linux, while it does work on the Mac. The error is essentially saying that a component is not being exported by default correctly but it while it exists in both codebases the linux will not allow the program to run while the mac will

    – Lullaby
    Nov 27 '18 at 3:37














0












0








0








Devs, why would 'react-scripts build' command show "import" and "default export" errors on the Linux but not on the Mac? Same codebase. Is there a config or environmental var that allows you to ignore errors in jsx files during this process?



My issue is that I have the same codebase that I am trying to get setup on both a Mac and a Linux, both computer have the same package versions installed, use the same command to run (i.e. npm start). My issue is that while the program can get up and running on the Mac just fine, on Linux it stops right after installing dependencies... line, indicating that there is some error that is preventing the program from running fully, both programs are being run from Visual Studio Code.



A suspicion of a friend is that there is some configuration setup possible on the Mac that is forcing the build script to ignore certain errors during the build process, thereby allowing the program to run despite having errors. This appears to have been confirmed when I once found a random error in the react code - fixed it - attempted to run the script again and it stopped due to a different error. While I don't have time to run through the entire codebase looking for small errors like this, I would be interested know if there is such a script that is forcing the react build to ignore said errors and if so where can I locate it on Windows/Linux and fix it?



Thanks again!










share|improve this question
















Devs, why would 'react-scripts build' command show "import" and "default export" errors on the Linux but not on the Mac? Same codebase. Is there a config or environmental var that allows you to ignore errors in jsx files during this process?



My issue is that I have the same codebase that I am trying to get setup on both a Mac and a Linux, both computer have the same package versions installed, use the same command to run (i.e. npm start). My issue is that while the program can get up and running on the Mac just fine, on Linux it stops right after installing dependencies... line, indicating that there is some error that is preventing the program from running fully, both programs are being run from Visual Studio Code.



A suspicion of a friend is that there is some configuration setup possible on the Mac that is forcing the build script to ignore certain errors during the build process, thereby allowing the program to run despite having errors. This appears to have been confirmed when I once found a random error in the react code - fixed it - attempted to run the script again and it stopped due to a different error. While I don't have time to run through the entire codebase looking for small errors like this, I would be interested know if there is such a script that is forcing the react build to ignore said errors and if so where can I locate it on Windows/Linux and fix it?



Thanks again!







javascript linux reactjs macos






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '18 at 3:34







Lullaby

















asked Nov 27 '18 at 3:24









LullabyLullaby

378




378













  • Title and first paragraph describe the situation differently. The title says that it does work on Mac but not on Linux; the first paragraph says it works on Mac and Linux but does not work on Linux. Which is it? Also what exactly are the errors?

    – Pointy
    Nov 27 '18 at 3:31











  • @Pointy Sorry for the confusion, but it does NOT work on the Linux, while it does work on the Mac. The error is essentially saying that a component is not being exported by default correctly but it while it exists in both codebases the linux will not allow the program to run while the mac will

    – Lullaby
    Nov 27 '18 at 3:37



















  • Title and first paragraph describe the situation differently. The title says that it does work on Mac but not on Linux; the first paragraph says it works on Mac and Linux but does not work on Linux. Which is it? Also what exactly are the errors?

    – Pointy
    Nov 27 '18 at 3:31











  • @Pointy Sorry for the confusion, but it does NOT work on the Linux, while it does work on the Mac. The error is essentially saying that a component is not being exported by default correctly but it while it exists in both codebases the linux will not allow the program to run while the mac will

    – Lullaby
    Nov 27 '18 at 3:37

















Title and first paragraph describe the situation differently. The title says that it does work on Mac but not on Linux; the first paragraph says it works on Mac and Linux but does not work on Linux. Which is it? Also what exactly are the errors?

– Pointy
Nov 27 '18 at 3:31





Title and first paragraph describe the situation differently. The title says that it does work on Mac but not on Linux; the first paragraph says it works on Mac and Linux but does not work on Linux. Which is it? Also what exactly are the errors?

– Pointy
Nov 27 '18 at 3:31













@Pointy Sorry for the confusion, but it does NOT work on the Linux, while it does work on the Mac. The error is essentially saying that a component is not being exported by default correctly but it while it exists in both codebases the linux will not allow the program to run while the mac will

– Lullaby
Nov 27 '18 at 3:37





@Pointy Sorry for the confusion, but it does NOT work on the Linux, while it does work on the Mac. The error is essentially saying that a component is not being exported by default correctly but it while it exists in both codebases the linux will not allow the program to run while the mac will

– Lullaby
Nov 27 '18 at 3:37












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53492276%2fsame-react-codebase-on-mac-and-linux-works-on-mac-but-wont-run-on-linux-due-to%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53492276%2fsame-react-codebase-on-mac-and-linux-works-on-mac-but-wont-run-on-linux-due-to%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks