The current start script in package.json uses the SimpleHTTPServer module, which is only available in Python 2. This causes the server to fail on systems with Python 3, resulting in an error. This pull request updates the start script to use the http.server module, which is the Python 3 equivalent, ensuring compatibility and resolving the issue.
Error Before Change:
> @svg-edit/svgedit-react@0.1.0 start /home/kali/code/extra/svg-edit-react-test
> python -m SimpleHTTPServer
/usr/bin/python: No module named SimpleHTTPServer
ELIFECYCLE Command failed with exit code 1.
Changes made:
Updated the start script in package.json from "python -m SimpleHTTPServer" to "python -m http.server".
Description:
The current start script in package.json uses the SimpleHTTPServer module, which is only available in Python 2. This causes the server to fail on systems with Python 3, resulting in an error. This pull request updates the start script to use the http.server module, which is the Python 3 equivalent, ensuring compatibility and resolving the issue.
Error Before Change:
Changes made:
Example:
Before:
After:
Impact:
This change will ensure the development server starts correctly on systems with Python 3, providing a smoother development experience.