Importing scripts from html5 template to react boilerplate [closed]2019 Community Moderator ElectionImporting CSS files in Isomorphic React Componentsreact-boilerplate+grommet, making sass work with webpackHow to import a css file in a react component?Importing multiple files in reactImport SVG in TypeScript React app with WebpackReact doesn't append class from classNameWebpack may need appropriate loaders to handle file. Loaders not loading CSS from importsImporting CSS files into React componentsWebpack Module build failed when importing React componentsInvalid Property Value on css style using imported css file in react

Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?

Best approach to update all entries in a list that is paginated?

Solving "Resistance between two nodes on a grid" problem in Mathematica

Why does Captain Marvel assume the planet where she lands would recognize her credentials?

How could our ancestors have domesticated a solitary predator?

Am I not good enough for you?

Good for you! in Russian

How much stiffer are 23c tires over 28c?

Is having access to past exams cheating and, if yes, could it be proven just by a good grade?

How do you like my writing?

Word for a person who has no opinion about whether god exists

Why does the negative sign arise in this thermodynamic relation?

Low budget alien movie about the Earth being cooked

Could you please stop shuffling the deck and play already?

Algorithm to convert a fixed-length string to the smallest possible collision-free representation?

Subset counting for even numbers

Do items de-spawn in Diablo?

Should QA ask requirements to developers?

Unreachable code, but reachable with exception

A question on the ultrafilter number

A three room house but a three headED dog

Why don't MCU characters ever seem to have language issues?

Make a transparent 448*448 image

Who deserves to be first and second author? PhD student who collected data, research associate who wrote the paper or supervisor?



Importing scripts from html5 template to react boilerplate [closed]



2019 Community Moderator ElectionImporting CSS files in Isomorphic React Componentsreact-boilerplate+grommet, making sass work with webpackHow to import a css file in a react component?Importing multiple files in reactImport SVG in TypeScript React app with WebpackReact doesn't append class from classNameWebpack may need appropriate loaders to handle file. Loaders not loading CSS from importsImporting CSS files into React componentsWebpack Module build failed when importing React componentsInvalid Property Value on css style using imported css file in react










-1















I am really new to react so pardon me for asking such a question.



What I am trying to do is to convert a HTML5 template that i bought online to a react app, I understand typical html pages use "class" and "style which I converted to "className" etc.



However, I am unable to properly make the JavaScript file run properly.



What I have tried is to import it as external plugin in the webpack configuration. The file is loaded in the body section of my app.



However, for some reason the JS is not running. You can refer to this image i have uploaded.



I also tried to import it in my app.js using the file loader shown below.



import '!file-loader?name=[name].[ext]!./styles/asset/core.min.js'; 
import '!file-loader?name=[name].[ext]!./styles/asset/script.js';


However, the JS file is still not working.










share|improve this question









New contributor




Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











closed as off-topic by Makyen, tripleee, ewolden, Cody Gray Mar 7 at 8:04


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Makyen, tripleee, ewolden, Cody Gray
If this question can be reworded to fit the rules in the help center, please edit the question.




















    -1















    I am really new to react so pardon me for asking such a question.



    What I am trying to do is to convert a HTML5 template that i bought online to a react app, I understand typical html pages use "class" and "style which I converted to "className" etc.



    However, I am unable to properly make the JavaScript file run properly.



    What I have tried is to import it as external plugin in the webpack configuration. The file is loaded in the body section of my app.



    However, for some reason the JS is not running. You can refer to this image i have uploaded.



    I also tried to import it in my app.js using the file loader shown below.



    import '!file-loader?name=[name].[ext]!./styles/asset/core.min.js'; 
    import '!file-loader?name=[name].[ext]!./styles/asset/script.js';


    However, the JS file is still not working.










    share|improve this question









    New contributor




    Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.











    closed as off-topic by Makyen, tripleee, ewolden, Cody Gray Mar 7 at 8:04


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Makyen, tripleee, ewolden, Cody Gray
    If this question can be reworded to fit the rules in the help center, please edit the question.


















      -1












      -1








      -1








      I am really new to react so pardon me for asking such a question.



      What I am trying to do is to convert a HTML5 template that i bought online to a react app, I understand typical html pages use "class" and "style which I converted to "className" etc.



      However, I am unable to properly make the JavaScript file run properly.



      What I have tried is to import it as external plugin in the webpack configuration. The file is loaded in the body section of my app.



      However, for some reason the JS is not running. You can refer to this image i have uploaded.



      I also tried to import it in my app.js using the file loader shown below.



      import '!file-loader?name=[name].[ext]!./styles/asset/core.min.js'; 
      import '!file-loader?name=[name].[ext]!./styles/asset/script.js';


      However, the JS file is still not working.










      share|improve this question









      New contributor




      Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am really new to react so pardon me for asking such a question.



      What I am trying to do is to convert a HTML5 template that i bought online to a react app, I understand typical html pages use "class" and "style which I converted to "className" etc.



      However, I am unable to properly make the JavaScript file run properly.



      What I have tried is to import it as external plugin in the webpack configuration. The file is loaded in the body section of my app.



      However, for some reason the JS is not running. You can refer to this image i have uploaded.



      I also tried to import it in my app.js using the file loader shown below.



      import '!file-loader?name=[name].[ext]!./styles/asset/core.min.js'; 
      import '!file-loader?name=[name].[ext]!./styles/asset/script.js';


      However, the JS file is still not working.







      javascript reactjs html5 boilerplate react-boilerplate






      share|improve this question









      New contributor




      Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Mar 7 at 8:29









      Lala

      294




      294






      New contributor




      Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Mar 7 at 7:55









      Kok Hwee KohKok Hwee Koh

      1




      1




      New contributor




      Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Kok Hwee Koh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      closed as off-topic by Makyen, tripleee, ewolden, Cody Gray Mar 7 at 8:04


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Makyen, tripleee, ewolden, Cody Gray
      If this question can be reworded to fit the rules in the help center, please edit the question.







      closed as off-topic by Makyen, tripleee, ewolden, Cody Gray Mar 7 at 8:04


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Makyen, tripleee, ewolden, Cody Gray
      If this question can be reworded to fit the rules in the help center, please edit the question.






















          0






          active

          oldest

          votes

















          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

          Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

          Zrinski family tree See also Navigation menu