Same react codebase on Mac and Linux, works on Mac but won't run on Linux due to errors?
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
add a comment |
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
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
add a comment |
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
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
javascript linux reactjs macos
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
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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