Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alias is not a valid Plugin property while using doc-development babel env #16474

Closed
francisrod01 opened this issue Jul 3, 2019 · 4 comments
Closed

Comments

@francisrod01
Copy link
Contributor

francisrod01 commented Jul 3, 2019

We primarily use GitHub as an issue tracker. For usage and support questions, please check out the resources below. Thanks!

Hey everyone, I'm trying to create a project from scratch following this repo, but to use only onepirate theme. It's ALL OK, but when I browser to /sign-in/ and refresh the page, all routes are available only if I remove the last "/".

Can you help me about this experience?
I guess you guys already have tried to use just a premium-template with next.js and type-script, right?

> rimraf node_modules/.cache/babel-loader && cross-env BABEL_ENV=docs-development node ./src/server.js

Defining routes from exportPathMap
> Using "webpackDevMiddleware" config function defined in next.config.js.
> Using external babel configuration
> Location: "/home/paneladm/react-website/babel.config.js"
[ error ] ./node_modules/next-server/dist/lib/data-manager-context.js
Error: [BABEL] /home/paneladm/projects/react-website/node_modules/next-server/dist/lib/data-manager-context.js: .alias is not a valid Plugin property
    at Array.forEach (<anonymous>)
    at Array.reduce (<anonymous>)
INFO 26625 http: ready on http://localhost:3000 and http://192.168.0.113:3000
^C

Envs:

  • npm: 6.9.0
  • node: v10.15.3
  • react: 16.8.6
  • react-dom: 16.8.6
  • next: 8.1.0
  • @material-ui/core: 4.1.3
  • babel-loader: 8.0.6

package.json scripts

"dev": "rimraf node_modules/.cache/babel-loader && cross-env BABEL_ENV=docs-development node ./src/server.js",

  1. Read the documentation.
  2. Ask questions on StackOverflow using the tag material-ui.
  3. Chat with the community on Spectrum.
  4. Ping us on Twitter.
@francisrod01 francisrod01 changed the title alias is not a valid Plugin property alias is not a valid Plugin property while using doc-development babel env Jul 3, 2019
@oliviertassinari
Copy link
Member

@francisrod01 I'm closing for #14604. I believe that the pain point is identical, the free full theme examples we host on the repository are not straightforward to use. They require too much knowledge.

@francisrod01
Copy link
Contributor Author

francisrod01 commented Jul 4, 2019

Hey @oliviertassinari, thanks for answer this issue.
I don't think so, it's not too hard to use with the projects from scratch, like the projects in the examples folder. We can do it! I could help.

I found this problem about the last slash in all links on the browser and we need to solve it in the premium-themes or maybe creating a helper to that as a theme module.

@oliviertassinari
Copy link
Member

@francisrod01 I'm confused, you are mentioning a Babel issue in the title of the issue.
Is the last slash issue you are mentioning something different, what's the problem about?

@francisrod01
Copy link
Contributor Author

Sorry, i can explain that. After the slash issue, I've tried to sue the babel command to run the application, but I also needed to use some modules from the material-ui project, like helpers, log, handleKillSignals.js, etc, and this issue is related about a babel configuration to run as doc-development environment.

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

No branches or pull requests

2 participants