diff --git a/package.json b/package.json index 08cfb9e..adab48b 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "engines": { - "node": "20" + "node": "16" }, "keywords": [ "react", diff --git a/src/index.js b/src/index.js index 48a7b06..b77d0fe 100644 --- a/src/index.js +++ b/src/index.js @@ -81,7 +81,7 @@ export const useCanvas = ({ setup, draw, options = {} }) => { } render(); } else { - throw Error( + console.error( `Unable to get context of type "${contextType}". Is webgl enabled?` ); }