You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "q631599119 (via GitHub)" <gi...@apache.org> on 2024/12/05 04:02:40 UTC

[I] when run npm run dev-server,vscode terminal is successful,but browser is error [superset]

q631599119 opened a new issue, #31296:
URL: https://github.com/apache/superset/issues/31296

   ### Bug description
   
   After get superset source, open the superset front source by vscode.
   First  i run npm ci
   Second i run npm run dev-server
   
   it is successful in the terminal,but the browser is error.
   
   ![image](https://github.com/user-attachments/assets/177fc289-8c7a-40f9-9acf-ab1f16092e67)
   ![image](https://github.com/user-attachments/assets/9f79af37-c54e-408e-bfd8-22fcafb2438d)
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.10
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] when run npm run dev-server,vscode terminal is successful,but browser is error [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #31296:
URL: https://github.com/apache/superset/issues/31296#issuecomment-2519043468

   <!-- Greeting -->
   Hello @q631599119! I'm here to assist you with any bugs, questions, or contributions related to Superset. Let's work together to resolve your issue.
   
   <!-- Answer -->
   I found a similar open issue titled "superset-frontend ReferenceError: module is not defined" that might be relevant to your problem. The suggested solution in that issue was to comment out the `react-hot-loader` plugin in the `babel.config.js` file as a temporary workaround. This change resolved the issue for some users, although it is a temporary fix and the root cause related to differences between Linux and Windows remains unclear <sup>[[1]](https://github.com/apache/superset/issues/28557)</sup>.
   
   You might want to try this workaround to see if it resolves the error you're encountering. Here's how you can do it:
   
   1. Open the `babel.config.js` file in your `superset-frontend` directory.
   2. Locate the `plugins` array.
   3. Comment out the line `'react-hot-loader/babel'`.
   
   ```javascript
   module.exports = {
     ...
     plugins: [
       ...
       // 'react-hot-loader/babel',
     ]
     ...
   }
   ```
   
   After making this change, try running `npm run dev-server` again and check if the error persists.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] when run npm run dev-server,vscode terminal is successful,but browser is error [superset]

Posted by "q631599119 (via GitHub)" <gi...@apache.org>.
q631599119 commented on issue #31296:
URL: https://github.com/apache/superset/issues/31296#issuecomment-2519346588

   > Hello @q631599119! I'm here to assist you with any bugs, questions, or contributions related to Superset. Let's work together to resolve your issue.
   > 
   > I found a similar open issue titled "superset-frontend ReferenceError: module is not defined" that might be relevant to your problem. The suggested solution in that issue was to comment out the `react-hot-loader` plugin in the `babel.config.js` file as a temporary workaround. This change resolved the issue for some users, although it is a temporary fix and the root cause related to differences between Linux and Windows remains unclear [[1]](https://github.com/apache/superset/issues/28557).
   > 
   > You might want to try this workaround to see if it resolves the error you're encountering. Here's how you can do it:
   > 
   > 1. Open the `babel.config.js` file in your `superset-frontend` directory.
   > 2. Locate the `plugins` array.
   > 3. Comment out the line `'react-hot-loader/babel'`.
   > 
   > ```js
   > module.exports = {
   >   ...
   >   plugins: [
   >     ...
   >     // 'react-hot-loader/babel',
   >   ]
   >   ...
   > }
   > ```
   > 
   > After making this change, try running `npm run dev-server` again and check if the error persists.
   > 
   > _To continue talking to [Dosu](https://dosu.dev), mention @dosu._
   
   Hello, @dosubot the problem has been resolved. Thank you very much,


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] when run npm run dev-server,vscode terminal is successful,but browser is error [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #31296:
URL: https://github.com/apache/superset/issues/31296#issuecomment-2519346907

   <!-- Answer -->
   You're welcome! I'm glad to hear the issue has been resolved. If you have any more questions or need further assistance, feel free to reach out. Happy coding!
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] when run npm run dev-server,vscode terminal is successful,but browser is error [superset]

Posted by "q631599119 (via GitHub)" <gi...@apache.org>.
q631599119 closed issue #31296: when run npm run dev-server,vscode terminal is successful,but browser is error 
URL: https://github.com/apache/superset/issues/31296


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org