Title: JSX: found the duplicated prop `className` · Issue #2 · rescriptbr/rescript-react-bootstrap · GitHub
Open Graph Title: JSX: found the duplicated prop `className` · Issue #2 · rescriptbr/rescript-react-bootstrap
X Title: JSX: found the duplicated prop `className` · Issue #2 · rescriptbr/rescript-react-bootstrap
Description: Here is my package.json { "name": "team-member-allocation", "version": "0.1.0", "scripts": { "clean": "rescript clean", "build": "rescript build", "watch": "rescript build -w" }, "keywords": [ "ReScript" ], "author": "", "license": "MIT"...
Open Graph Description: Here is my package.json { "name": "team-member-allocation", "version": "0.1.0", "scripts": { "clean": "rescript clean", "build": "rescript build", "watch": "rescript build -w" }, "keywords": [ "ReS...
X Description: Here is my package.json { "name": "team-member-allocation", "version": "0.1.0", "scripts": { "clean": "rescript clean", "b...
Opengraph URL: https://github.com/rescriptbr/rescript-react-bootstrap/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSX: found the duplicated prop `className`","articleBody":"Here is my package.json\r\n\r\n```\r\n{\r\n \"name\": \"team-member-allocation\",\r\n \"version\": \"0.1.0\",\r\n \"scripts\": {\r\n \"clean\": \"rescript clean\",\r\n \"build\": \"rescript build\",\r\n \"watch\": \"rescript build -w\"\r\n },\r\n \"keywords\": [\r\n \"ReScript\"\r\n ],\r\n \"author\": \"\",\r\n \"license\": \"MIT\",\r\n \"devDependencies\": {\r\n \"@rescriptbr/react-bootstrap\": \"github:rescriptbr/rescript-react-bootstrap\",\r\n \"copy-webpack-plugin\": \"^11.0.0\",\r\n \"css-loader\": \"^6.7.3\",\r\n \"html-webpack-plugin\": \"^5.5.0\",\r\n \"rescript\": \"^10.0.1\",\r\n \"style-loader\": \"^3.3.1\",\r\n \"webpack\": \"^5.75.0\",\r\n \"webpack-cli\": \"^5.0.1\",\r\n \"webpack-dev-server\": \"^4.11.1\"\r\n },\r\n \"dependencies\": {\r\n \"@rescript/react\": \"^0.11.0\",\r\n \"bootstrap\": \"^5.1.0\",\r\n \"react-bootstrap\": \"^2.7.2\"\r\n }\r\n}\r\n```\r\nand this is my bsconfig.json\r\n\r\n\r\n```\r\n{\r\n \"name\": \"team-member-allocation\",\r\n \"version\": \"0.1.0\",\r\n \"sources\": {\r\n \"dir\" : \"src\",\r\n \"subdirs\" : true\r\n },\r\n \"package-specs\": {\r\n \"module\": \"es6\",\r\n \"in-source\": true\r\n },\r\n \"suffix\": \".bs.js\",\r\n \"jsx\": { \"version\": 4, \"mode\": \"classic\" },\r\n \"bs-dependencies\": [\r\n \"@rescript/react\",\r\n \"@rescriptbr/react-bootstrap\"\r\n ],\r\n \"reason\": {\"react-jsx\": 3} \r\n}\r\n```\r\n\r\nWhen I try to compile my code I get an error in the source code of `@rescriptbr/react-bootstrap`\r\n\r\n\r\n```\r\n\u003e team-member-allocation@0.1.0 build\r\n\u003e rescript build\r\n\r\nDependency on @rescript/react\r\nDependency on @rescriptbr/react-bootstrap\r\nrescript: [1/10] src/Nav.ast\r\nFAILED: src/Nav.ast\r\n\r\n We've found a bug for you!\r\n /Users/foo/code/Rescript/team-member-allocation/node_modules/@rescriptbr/react-bootstrap/src/Nav.res:17:3-20:18\r\n\r\n 15 │ ~onKeyDown: unit =\u003e unit=?,\r\n 16 │ ~variant: [#tabs | #pills],\r\n 17 │ ~className: string=?,\r\n 18 │ ~children: React.element,\r\n 19 │ ~bsPrefix: string=?,\r\n 20 │ ) =\u003e React.element = \"Nav\"\r\n 21 │\r\n 22 │ module Item = {\r\n\r\n JSX: found the duplicated prop `className`\r\n\r\nrescript: [2/10] src/Button.ast\r\nFAILED: src/Button.ast\r\n\r\n We've found a bug for you!\r\n /Users/foo/code/Rescript/team-member-allocation/node_modules/@rescriptbr/react-bootstrap/src/Button.res:15:3-18:18\r\n\r\n 13 │ ~_type: buttonType=?,\r\n 14 │ ~variant: variant=?,\r\n 15 │ ~className: string=?,\r\n 16 │ ~children: React.element,\r\n 17 │ ~bsPrefix: string=?,\r\n 18 │ ) =\u003e React.element = \"Button\"\r\n 19 │\r\n\r\n JSX: found the duplicated prop `className`\r\n\r\nrescript: [3/10] src/Accordion.ast\r\nFAILED: src/Accordion.ast\r\n\r\n We've found a bug for you!\r\n /Users/foo/code/Rescript/team-member-allocation/node_modules/@rescriptbr/react-bootstrap/src/Accordion.res:66:5-68:20\r\n\r\n 64 │ ~children: React.element,\r\n 65 │ ~className: string=?,\r\n 66 │ ~children: React.element,\r\n 67 │ ~bsPrefix: string,\r\n 68 │ ) =\u003e React.element = \"Collapse\"\r\n 69 │ }\r\n 70 │\r\n\r\n JSX: found the duplicated prop `children`\r\n\r\nFAILED: cannot make progress due to previous errors.\r\nFailure: /Users/foo/code/Rescript/team-member-allocation/node_modules/rescript/darwin/ninja.exe\r\nLocation: /Users/foo/code/Rescript/team-member-allocation/node_modules/@rescriptbr/react-bootstrap/lib/bs\r\n```\r\n\r\nThis is my Index.res file which imports rescript react bootstrap\r\n\r\n\r\n```\r\nJs.Console.log(\"came inside the main application\")\r\n%%raw(\"import ('bootstrap/dist/css/bootstrap.min.css')\")\r\nswitch ReactDOM.querySelector(\"#main\") {\r\n| Some(rootElement) =\u003e\r\n ReactDOM.Client.Root.render(ReactDOM.Client.createRoot(rootElement), \u003cDemo /\u003e)\r\n| None =\u003e \r\n Js.Console.log(\"could not find main div\")\r\n () \r\n}\r\n```\r\n\r\nand finally this is my code which is using react bootstrap\r\n\r\n\r\n```\r\nmodule Button = ReactBootstrap.Button \r\n@react.component\r\nlet make = () =\u003e {\r\n \u003cdiv\u003e\r\n {\"Hello World\" -\u003e React.string}\r\n \u003cButton variant=\"primary\"\u003e{\"Primary\"-\u003eReact.string}\u003c/Button\u003e\r\n \u003cButton variant=\"secondary\"\u003e{\"Secondary\"-\u003eReact.String}\u003c/Button\u003e\r\n \u003cButton variant=\"success\"\u003e{\"Success\"-\u003eReact.String}\u003c/Button\u003e\r\n \u003cButton variant=\"warning\"\u003e{\"Warning\"-\u003eReact.String}\u003c/Button\u003e\r\n \u003cButton variant=\"danger\"\u003e{\"Danger\"-\u003eReact.String}\u003c/Button\u003e\r\n \u003cButton variant=\"light\"\u003e{\"Light\"-\u003eReact.String}\u003c/Button\u003e\r\n \u003c/div\u003e\r\n}\r\n```","author":{"url":"https://github.com/abhsrivastava","@type":"Person","name":"abhsrivastava"},"datePublished":"2023-02-25T16:18:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/rescript-react-bootstrap/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b654269-6130-bb64-376e-c1602545fedc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 965A:DE334:C291AA:FB2385:6975914E |
| html-safe-nonce | 2126778f831a8044ec437a474da99816f58d2ec52e0f0b75970faabed10ff92e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjVBOkRFMzM0OkMyOTFBQTpGQjIzODU6Njk3NTkxNEUiLCJ2aXNpdG9yX2lkIjoiNTYxODUxMzQ5ODAwOTQ4MDQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 52aa5492fb0693bba6fe3912fc24dba7f6e778b060a99c4f1f6f9f03cb4dde15 |
| hovercard-subject-tag | issue:1599755779 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rescriptbr/rescript-react-bootstrap/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4dad6e1d1f38ee2ae6d07f5643d0ba2d9377ff65e0364ec91551b41982d037b1/rescriptbr/rescript-react-bootstrap/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4dad6e1d1f38ee2ae6d07f5643d0ba2d9377ff65e0364ec91551b41982d037b1/rescriptbr/rescript-react-bootstrap/issues/2 |
| og:image:alt | Here is my package.json { "name": "team-member-allocation", "version": "0.1.0", "scripts": { "clean": "rescript clean", "build": "rescript build", "watch": "rescript build -w" }, "keywords": [ "ReS... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abhsrivastava |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/rescriptbr/rescript-react-bootstrap git https://github.com/rescriptbr/rescript-react-bootstrap.git |
| octolytics-dimension-user_id | 33269458 |
| octolytics-dimension-user_login | rescriptbr |
| octolytics-dimension-repository_id | 403814601 |
| octolytics-dimension-repository_nwo | rescriptbr/rescript-react-bootstrap |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 403814601 |
| octolytics-dimension-repository_network_root_nwo | rescriptbr/rescript-react-bootstrap |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width