Open
Description
I followed the steps for local development from the readme and saw the following error.
> npm i
> npx bower i
> npx pulp build
> npm start
...
* Building project in /.../purescript-lumi-components
ℹ 「wds」: Project is running at http://0.0.0.0:3000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /.../purescript-lumi-components
✖ 「wdm」: 33 modules
ERROR in ./docs/index.jsx 8:2
Module parse failed: Unexpected token (8:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
See https://webpack.js.org/concepts#loaders
|
| ReactDOM.render(
> <HashRouter>
| <ScrollManager>
| <App />
ℹ 「wdm」: Failed to compile.
Src Lib All
Warnings 0 0 0
Errors 0 0 0
* Build successful.
Activity
maddie927 commentedon Jun 22, 2020
Hmm, I just tried a fresh clone and didn't run into this. Perhaps an issue with npm's cache? If clearing that doesn't help can you provide more info like your OS,
npx pulp --version
,node --version
,npm --version
, andnpm ls webpack
?philderbeast commentedon Jun 22, 2020
Verifying the cache as npm suggests.
Here are the versions while I try forcing a clean of the cache.
philderbeast commentedon Jun 22, 2020
After
npm cache clean --force
the build reports the same error as before.maddie927 commentedon Jun 22, 2020
Very strange.. 🤔
maddie927 commentedon Jun 22, 2020
maddie927 commentedon Jun 25, 2020
@philderbeast Can you try commenting out this line?
https://github.com/lumihq/purescript-lumi-components/blob/main/webpack.config.js#L99
philderbeast commentedon Jun 25, 2020
It works for me now with that one line taken out. Thanks @spicydonuts.
philderbeast commentedon Jun 26, 2020
I did a fresh clone and this time didn't encounter the error. I see the line I commented out last time for the build has not changed but I have now installed bower, pulp, purescript and spago globally. I did this to try other projects without such hermetic builds as this one.
maddie927 commentedon Jun 26, 2020
Odd. I was using the npx commands so we should have been on the same local versions. I don't get why excluding unrelated folders affects whether
docs/
is included 🤔