Coder Social home page Coder Social logo

Comments (3)

shellscape avatar shellscape commented on August 15, 2024

Thanks for the issue and repro 🍺

I just tried your reproduction and all works as expected for me:

β†’ npm run build

> [email protected] build /code/forks/test-rollup-typescript
> rollup -c


src/index.ts β†’ bundle.js...
created bundle.js in 141ms

Could something on your system be interfering?

from plugins.

quentinadam avatar quentinadam commented on August 15, 2024

Thank you for the quick reply.

I have done some further testing, and I was able to pin down more specifically why it did not work in my environment and why I does work in other environments.

I still believe that there is a bug somewhere.

It appears that a parent folder of the folder I was working from contained a parenthesis "(". The exact path I was working from was "/Users/quentinadam/Dropbox (Personal)/Projects/test-rollup-typescript".

Spaces in the path do not seem to interfere but parentheses do.

If the name of the folder is changed for example from "test-rollup-typescript" to "test-rollup-typescript(test)" the npm run build step fails with the error I described above.

The issue is 100% reproducible on a fresh Digital Ocean VPS with Ubuntu 18.04 with the following commands :

# install nodejs
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

# clone repo
git clone https://github.com/quentinadam/test-rollup-typescript.git

cd test-rollup-typescript

# install packages
npm install

# move out of folder and change folder name to include parenthesis
cd ..
mv test-rollup-typescript "test-rollup-typescript(test)"
cd "test-rollup-typescript(test)"

# run build phase
npm run build

from plugins.

NotWoods avatar NotWoods commented on August 15, 2024

This seems to be caused by pluginutils' createFilter interpreting parenthesis as glob characters instead of part of the path. As a result, the typescript files aren't matched properly by the filter. I'll try to put up a PR for pluginutils later.

from plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.