Skip to content

webpack output publicPath #2

Description

@ryanau

Hi Richard! I followed your tutorial to build a rails app as an api with react front end on a separate node.js server. It seems like your webpack.config.js file, instead of having

output: { // ... publicPath: '', // ... }
it should've been

output: { // ... publicPath: '/', // ... }

otherwise you cannot access the module.js file in a nested url. I was searching up this error and I found this: [https://github.com/remix-run/react-router/issues/676]
Might not be relevant to your tutorial but just something I found that might be useful!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions