question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add any extra file in container if not added at npm run generate

See original GitHub issue

Description

If I add any file( eg. messages.js which I did not add while generating ) after I generated the container, I get linting errors. Is there a different way to add files?

Steps to reproduce

npm run generate and select no in all options provided. Then try adding messages or constants file by simply clicking on create a file in vsCode. It will show linting errors and won’t be resolved no matter what you do(auto-fix won’t work as well).

Expected behavior I should not get the linting error when I add messages, actions, or constants files.

Screenshots linting-error

Versions

  • React-Boilerplate: v4.0.0
  • Node/NPM: Node@v10.16.3 and npm 6.9.0
  • Browser: Not applicable

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
archanselcommented, May 7, 2020

I always add file manually when working with RBP.

The VSCode usually will give you a hint for the errors by hovering at the “red error marks” Do you have prettier and eslint addons installed in your VSCode?

0reactions
lock[bot]commented, Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - Install node_modules inside Docker container and ...
The first thing is done: node_modules are installed automatically. The second thing is done too: node_modules are installed inside the Docker ...
Read more >
Build and run a Node.js app in a container - Visual Studio Code
Open the project folder in VS Code. · Open the Command Palette (Ctrl+Shift+P) and use Docker: Add Docker Files to Workspace... command: ·...
Read more >
Using Docker for Node.js in Development and Production
By simple, I mean that your code does not have any extra native dependencies or build logic. FROM node:10-alpine WORKDIR /usr/src/app COPY ...
Read more >
Best practices for writing Dockerfiles - Docker Documentation
When you run an image and generate a container, you add a new writable layer (the “container layer”) ... without sending additional files...
Read more >
9 Common Dockerfile Mistakes - Runnablog
Volumes in your image are added when you run your container, not when you build it. In a similar way to #5, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found